Created
January 20, 2017 06:00
-
-
Save aramis-it/ca3e538471ad9229c59d3b5d4361b6d6 to your computer and use it in GitHub Desktop.
Jquery confirm before submit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("form").submit(function (e) { | |
if (confirm("Bla bla")) { | |
} else { | |
e.preventDefault(e); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment