LebGeeks

A community for technology geeks in Lebanon.

You are not logged in.

#1 August 24 2007

mahdoum
Member

Quick Javascript question

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..

Offline

#2 August 25 2007

samer
Admin

Re: Quick Javascript question

Offline

#3 August 25 2007

mahdoum
Member

Re: Quick Javascript question

Found what i was looking for

this.parentNode

Thanks

Offline

Board footer