Submitting a form by pressing enter without a submit button

前端 未结 20 1833
你的背包
你的背包 2020-11-22 06:46

Well I am trying to submit a form by pressing enter but not displaying a submit button. I don\'t want to get into JavaScript if possible since I want everything to work on a

20条回答
  •  余生分开走
    2020-11-22 07:06

    
    

    This works fine and it is the most explicit version of what you're trying to achieve.

    Note that there is a difference between display:none and visibility:hidden for other form elements.

提交回复
热议问题