jquery on feom submit code example
Example 1: jquery prevent form submit
//option A
$("form").submit(function(e){
e.preventDefault();
});
Example 2: jquery submit form on enter
//jQuery submit form when Enter key is pressed
$("#myInputID").keypress(function (e) {
if (e.which == 13) {
$("#myFormID").submit();
return false;
}
});