I have a survey on a website, and there seems to be some issues with the users hitting enter (I don\'t know why) and accidentally submitting the survey (form) without clicki
This works for me
jQuery.each($("#your_form_id").find('input'), function(){ $(this).bind('keypress keydown keyup', function(e){ if(e.keyCode == 13) { e.preventDefault(); } }); });