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

multiple form returns

Status
Not open for further replies.

derwent

Programmer
May 5, 2004
428
GB
I have a form that runs a piece of javascript to validate using onSubmit="return fnValidateForm(this);"

I need to run another piece of javascript when the submit button is pressed, how can I do this?

I have tried onSubmit="return fnValidateForm(this); fnother();" but that only ran the first javacsript and ignored the second.
 
Try:
Code:
onSubmit="return (fnValidateForm(this) && fnother());"

Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top