How to trigger HTML button when you press Enter in textbox?

后端 未结 12 1248
悲哀的现实
悲哀的现实 2020-12-04 08:13

So the code that I have so far is:

&
12条回答
  •  有刺的猬
    2020-12-04 09:11

    It works when input type="button" is replaced with input type="submit" for the default button which needs to be triggered.

提交回复
热议问题