I am using a CMS that creates a form and sends it via AJAX. I'd like to validate the inputs before, but cannot prevent it from sending, because the CMS binds sending on the submit event.
bind(form, "submit", function(e){
…
})
I thought this would stop it and I can validate my inputs.
$( ".contact-form form" ).on('submit', function(e){
e.stopImmediatePropagation();
})
But even stopImmediatePropagation() won't prevent sending.