Don't refresh page when enter key is pressed

后端 未结 4 1594
失恋的感觉
失恋的感觉 2021-02-09 17:03

I\'m having some problems with the enter key triggering a refresh of the page whenever there is input in a form.

The following code does not refresh the page if enter is

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-09 17:43

    simply change your html:

    Enter your verb here in plain (dictionary) form: ....

    jsfiddle here - works like charm

提交回复
热议问题