infokani
1/20/2017 - 6:00 AM

Jquery confirm before submit

Jquery confirm before submit

$("form").submit(function (e) {
        if (confirm("Bla bla")) {

        } else {
            e.preventDefault(e);
        }
    });