Form not submitting when pressing enter

后端 未结 6 1062
长发绾君心
长发绾君心 2020-12-15 03:11

I have the following HTML/JS/jQuery Code. This code represents a login form that is presented modally to the user to allow them to login. The problem is, when I hit enter, t

6条回答
  •  感情败类
    2020-12-15 04:06

    It can also come from a javascript bind to a some info

    Your Enter button will be caught somewhere by the return falseand your form won't submit under Enter key. The correct way is to specify that the

    and drop the return false you've putted there to prevent that button from submitting a form. ;-)

    For the sake of learning,

提交回复
热议问题