So you have an HTML form but you dont want it to submit by pressing enter? … here’s what to do.
You will obviously need JQuery … but here’s the code:
$('form').bind("keyup", function(e) {
var code = e.keyCode || e.which;
if (code == 13) {
e.preventDefault();
return false;
}
});