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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

document.forms.form.submit();

Status
Not open for further replies.

ducky62

Programmer
Jul 10, 2001
24
CA
i have a button...
when they click the button it goes to a function to validate the data.
if the data is valid I want to submit the form

i have

<INPUT TYPE=button VALUE=&quot;Send to :&quot; onClick=&quot;if (forceEntry()) {document.forms.okay3.submit();}&quot;>

but this doesn't work and I already checked that forceEntry is returning true and okay3 is the name of my form

thanks for any help you can provide
 
why so?

try

<form name=&quot;okay3&quot; onsubmit=&quot;return forceEntry()&quot;> Victor
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top