You can use the onsubmit function.
If you return false the form won’t get submitted. Read up about it here.
$('#myform').submit(function() {
// your code here
});
You can use the onsubmit function.
If you return false the form won’t get submitted. Read up about it here.
$('#myform').submit(function() {
// your code here
});