form ignoring javascript in php on enter code example
Example: jquery avoid enter submit
$(document).ready(function() {
$(window).keydown(function(event){
if(event.keyCode == 13) {
event.preventDefault();
return false;
}
});
});