Welcome to the nuBuilder forums!
Please register and login to view forums and other content only available to registered users.
Please register and login to view forums and other content only available to registered users.
Access DOM with code
-
- Posts: 2
- Joined: Sat Feb 27, 2016 11:04 am
Access DOM with code
Hi, sorry, my english is not ggod. Please would someone explain me why in a form in "Extra Action Buttons" tab do not running code like this "var c = document.getElementById("myelement") ("myelement" is valid id of tag);" but something like this "alert ("my alert")" do. Thanks a lot.
-
- Site Admin
- Posts: 2786
- Joined: Mon Jun 15, 2009 2:23 am
- nuBuilder Version: 4.5
- Been thanked: 3 times
Re: Access DOM with code
Pfigueredo,
What are you tring to do with var c = document.getElementById("myelement")?
All you have done is set an object to a variable, unlike alert ("my alert" which displays a message to the user?
Steven
What are you tring to do with var c = document.getElementById("myelement")?
All you have done is set an object to a variable, unlike alert ("my alert" which displays a message to the user?
Steven