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
Attach the event to the submit element not to the form element. For example in your html do like this
$('input[type=submit]').on('click', function(e) { e.preventDefault(); });