I have classic HTML form. After click on submit button i want run my script so i have in jquery:
$(document).on('click', '.myForm #btnSubmit', function(e) {
e.preventDefault();
// some scripts
so before send form i have e.preventDefault();
, after this runs my scripts.... And after my scripts are done, i want continue html5 validation like required field etc...
How i can continue? I was tried click()
but it is nonsense because it is loop - again have e.preventDefault();
and so on...
In short: Client click on submit button, i need run some my javascript scripts and if results are ok, then i need continue with standart behaviour - html5 validation...