Click to See Complete Forum and Search --> : how can i prevent from a form to be subbmitted


pelegk1
12-15-2003, 02:51 AM
i want a form to be submited only
in certain conditios hat are being check at a js function!
how can i make this work?
thanks alot
peleg

fredmv
12-15-2003, 03:03 AM
Make the function return a true Boolean value if the conditions are met and a false Boolean value if the conditionals are not met. The first would proceed with the event (onsubmit) resulting in the form submitting, and the second would cancel the event resulting in the form not submitting.