Jump to content

Prestashop 1.7 javascript submit form after event.preventDefault


Recommended Posts

Hello everyone,

Here in order page i use evt.preventDefault();

document.querySelector("button[name=confirm-addresses]").addEventListener("click", function(evt){

    $('body').css('opacity', 0.2);  
    $('body').append('<div class="loadme-circular"></div>');    
    evt.preventDefault();

	// my process

}

I want to after process cancel     evt.preventDefault(); for submit continue.

Have you idea plz?

Thanks

Edited by jikail (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...