[removed] Enter Key Press

前端 未结 3 1847
[愿得一人]
[愿得一人] 2021-01-14 15:00

Good Morning...

I am using java script in each page to trigger the Enter key press Event inside the textbox. It is working fine. Now i want to place the c

3条回答
  •  佛祖请我去吃肉
    2021-01-14 15:21

    If you want the form to submit when the user presses the Enter key, then you don't need javascript. It will do so automatically. Just put the textbox inside a form element with an action:

    when the enter key is pressed, the form is submitted and sent to process.php

提交回复
热议问题