...

View Full Version : Multiple onSubmit events in a form



bspahr75
04-11-2003, 08:35 PM
Is something like the following possible?

<form name="frm" method="post" action="return.asp" onSubmit="return checksubmit()" onSubmit="return false;">

beetle
04-11-2003, 08:40 PM
Well, normally, two scripting actions on one event would be like this

<form name="frm" method="post" action="return.asp" onSubmit="return checksubmit(); return false;">

however, that won't work, because return checksubmit() will indeed return, so the 2nd statement will never run.

Besides, why do you want to return false like that? Just have checksubmit() return false when needed.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum