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!

submit form with html menu

Status
Not open for further replies.

rudenborg

Programmer
May 18, 2004
19
US
Hi-

I don't use javascript much but I have a quick question:

Is there a way to activate the submit button on a form when an option is chosen from an html menu?

I have a .php page that I need to submit to it self automatically everytime a different value is chosen from an html menu. So every time they choose a value from the menu it's like they also hit the submit button in the form.

thanks for your time!

Jonathan

 

This will submit any form... Just replace "yourFormNameHere" with the name of your form.

Code:
document.forms['yourFormNameHere'].submit();

Hope this helps,
Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top