before submit javascript 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
});