How to disable auto submit behavior when hitting enter key?

前端 未结 7 1280
故里飘歌
故里飘歌 2020-12-17 16:52

I want to hit enter key to go to p2.htm or p3.htm according to the input text that I was typing in. And I also want to hit submit1 button to alert(\'no1\') manually.

<
相关标签:
7条回答
  • 2020-12-17 17:37

    Change the input type from "submit" to "button"

    0 讨论(0)
提交回复
热议问题