StevenJames
asked on
Form with multiple onsubmit checks
I have a couple functions in a form's OnSubmit event.
<form name="frm1" method="POST" action="show.asp" onsubmit="return CheckFrm1();return DoThisToo();">
But only one get's executed. Can I put multiple functions here?
Also is there an order of events (which get's ececuted first) Left to right?
<form name="frm1" method="POST" action="show.asp" onsubmit="return CheckFrm1();return DoThisToo();">
But only one get's executed. Can I put multiple functions here?
Also is there an order of events (which get's ececuted first) Left to right?
left to right
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the kick in the pants. lol
ASKER
Thanks b0lsc0tt,
You gave me the idea of looking at other events, and since the user clicks on the submit button, I put the check in there, then my todostuff in the form's OnSubmit.
Works!
You gave me the idea of looking at other events, and since the user clicks on the submit button, I put the check in there, then my todostuff in the form's OnSubmit.
Works!
Great! Your welcome! I'm glad I could help. Thanks for the grade, the points and the fun question.
bol
bol
return stops execution and gives a value to onsubmit.