You are not logged in.
Pages: 1
Topic closed
If I've got a form that has an input box and a submit button inside it. How can I get the input box object when I click the submit button? I am trying to use the 'this' object and not document.getElementById... I am aware that I have to get the parent (the form) and then the input box, but I don't know how to access the parent object..
http://www.quirksmode.org/js/this.html
I hope it's useful :)
Found what i was looking for
this.parentNode
Thanks
Pages: 1
Topic closed