I´m trying to reference a submit button:
<input name="submit" type="submit" id="submit" tabindex="5" value="Submit" />
Tried this:
var submit_btn = $('submit');
and also with document.getElementByID('submit')
.
But it always evaluates to null
..
Also tried to loop all form elements to reach the button as lastChild
but the result is allways null
. Is this a known bug?
Also, when I try to reference the form element by id, the result is also null
..