PDA

View Full Version : Multiple onSubmit Attributes



gold2040
05-28-2006, 11:01 PM
Hey

Is it possible to have multiple onSubmit attributes in a form

Cheers

Tom Evans

Twey
05-28-2006, 11:13 PM
Nope.

jscheuer1
05-29-2006, 07:58 AM
Twey is correct but, you can have more than one thing happen onsubmit. With onsubmit, the simplest thing would be something like:


onsubmit="alert('Thanks');"

You could do two things (or more):


onsubmit="alert('Thanks');alert('Y\'all Come Back Now');"