How do I prevent a form from submitting using jquery?
I tried everything - see 3 different options I tried below, but it all won\'t work:
$(docu
When I am using tag without the attribute id="form" and call it by its tag name directly in jquery it works with me. your code in html file :
id="form"
and in Jquery script:
$(document).ready(function() { $('form').submit(function(evt){ evt.preventDefault();// to stop form submitting }); });