View Full Version : calling two functions at one

06-04-2005, 10:00 AM
can't seem to get this to be the proper syntax... any suggestions?

onsubmit="return BeforeSubmit();return submitCheck()"

Harry Armadillo
06-04-2005, 10:14 AM
Do you need BeforeSubmit() to be able to stop the form submission by return a value of false? If so, try

onsubmit="return(BeforeSubmit() && submitCheck())"

if not, use:

onsubmit="BeforeSubmit();return submitCheck()"