...

View Full Version : Multiple OnSubmit Functions



Thatguy2001au
12-10-2002, 07:58 AM
Hi,

Sorry, this might be a sill question but i am only new to javascript. What I wanted to know was, is it possible to have more than one OnSubmit Function for a single form??? If so, how would i write it???

glenngv
12-10-2002, 08:26 AM
if each of the functions returns true/false then:

onsubmit="return function1() && function2()"

Thatguy2001au
12-10-2002, 08:46 AM
Thanks alot Glenn. It works fine now.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum