hello,
i have this webpage that is semi big, and i'm writing some javascript to fix it up and make it more streamline. however, i don't know the path of some of my html objects.
for example
Code:
<input type = "radio" value="0" name="myradio">Radio
<select name = "sel" id ="sel" >
<option name="1">Option 1 </option>
<option name="2"> Option 2</option>
</select>
i want to add:
Code:
<input type = "radio" value="0" name="myradio"
onclick = javafunct(document.myformName.sel)>Radio
but i get errors, saying that "document.myformName.sel is null or not an object.
however when i do:
Code:
<select name = "sel" id ="sel" onchange(this)>
<option name="1">Option 1 </option>
<option name="2"> Option 2</option>
</select>
it works fine,
so my question is, can print out the DOM path of "this"? (which my select menu)
i think that the select object is nested somewhere, but its hard to tell, and i didn't write the webpage, i'm just fixing it up for someone...
thanks,
djgerbavor3