C
Carl
Assume a form with a button
<form id="myform"
<input id="mybutton" type="button">
</form>
how can i use getElementById to access the button?
I tried this:
var a
a=document.getElementById("mybutton")
but i get an error "a is not an object"
Any idea?
Carl
<form id="myform"
<input id="mybutton" type="button">
</form>
how can i use getElementById to access the button?
I tried this:
var a
a=document.getElementById("mybutton")
but i get an error "a is not an object"
Any idea?
Carl