capture form submit event in javascript return value 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
});