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
It can also come from a javascript bind to a in your form. For exemple, if you have
some info
Your Enter button will be caught somewhere by the return false
and your form won't submit under Enter key. The correct way is to specify that the ACT as a button. This way :
and drop the return false
you've putted there to prevent that button from submitting a form. ;-)
For the sake of learning, type is by default submit. If you want them to act as control for your form, you must specify the
type="button"
or type="reset"
See w3.org about it