Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

At onSubmit Event() how do I find the element that made the request

Status
Not open for further replies.

swissneil

Programmer
Jan 11, 2001
5
CH
I would like to reference the "request" object to see which form element was actually
clicked to fire the submit event.
Is this possible ?

My functionality work as follows.I've got and <input type=&quot;image&quot; name=value1.....>
I want the submit event triggered by a click
on this image to return me true or false depending on the dropdown selection.
At the moment I am able to see which element was selected in the dropdown
but I also need to know which form element was used for submitting.I only want this
functionality for my <input type=&quot;image&quot; value1.....> and not for the other buttons or text fields on my form.

Appreciate some input.
Thanx.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top