通过回车来防止用户提交表单

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 clicking the submit button. Is there a way to prevent this?

I'm using HTML, PHP 5.2.9, and jQuery on the survey.

转载于:https://stackoverflow.com/questions/895171/prevent-users-from-submitting-a-form-by-hitting-enter

查看全部
csdnceshi80
胖鸭
2009/05/21 21:09
  • form-submit
  • html5
  • jquery
  • forms
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

0个回复