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
It is my solution to reach the goal, it is clean and effective.
$('form').submit(function () { if ($(document.activeElement).attr('type') == 'submit') return true; else return false; });