Anyway to stop form submission with javascript
-
Hi,
I’m created custom validation using the before_submit function in the javascript section.
Is there anyway to stop the form from submitting from within this function?? When I submit the form I see the alert and then the form gets submitted.Here is my code
function before_submit() { if (!jQuery(".prettyRadiobuttons input").is(":checked")) { alert("Radio Buttons not checked"); return false; } }Thanks,
Christian
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Anyway to stop form submission with javascript’ is closed to new replies.