Disabling enter key for form

后端 未结 12 790
深忆病人
深忆病人 2020-12-04 21:07

I have been trying to disable the Enter key on my form. The code that I have is shown below. For some reason the enter key is still triggering the submit. The cod

12条回答
  •  情深已故
    2020-12-04 22:01

    The better way I found here:

    Dream.In.Code

    action="javascript: void(0)" or action="return false;" (doesn't work on me)

提交回复
热议问题