Some of designer when they slice layout they create form submit button with a anchor tag and href=”hashtag” and then users cannot able to submit form when they press enter in form fields, I have wrote little code to submit even from don’t have a input type submit button, and if you don’t want to submit form with enter or using ajax on form submission just add a class in form tag called nodir_submit
$("body").delegate("form input","keyup",function (eve) { if(eve.keyCode == 13) { var form_ele = $(this).closest("form"); if(form_ele.hasClass("nodir_submit")==false) { form_ele.submit(); } } });