js event before submitting code example
Example: buttons js before submit
$('#myform').submit(function() {
// DO STUFF...
return true; // return false to cancel form action
});
$('#myform').submit(function() {
// DO STUFF...
return true; // return false to cancel form action
});