Prevent users from submitting a form by hitting Enter

后端 未结 30 3545
感动是毒
感动是毒 2020-11-21 05:13

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

30条回答
  •  广开言路
    2020-11-21 05:34

    You can also use javascript:void(0) to prevent form submission.

提交回复
热议问题