This is a pretty simple problem to describe. This has been tested on Firefox (3.6), IE (8) and Chrome (8).
Here is the donotsubmit.html file
<form> <input /> <input /> </form>
When the focus is on one of the inputs and you press the enter button, nothing happens.
Below is the doessubmit.html file
<form> <input /> </form>
When the focus is at the input and you press enter, the form is submitted.
Any understanding of this inconsistent behavior?
I know that there is no submit button on the form, and therefore it is not semantically correct. In any case, the sending process should have been automatically processed using the jQuery dialogs button buttons, and I would not know how to place an additional <input type = "submit" />.
input submit forms keypress enter
Karim
source share