normal ajax form submit without jquery 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;
}
});
Example 3: javascript submit a form
document.getElementById("myFormID").submit();