When a <select>
field is focussed, pressing the Enter key does not submit the form. Is it possible to make it submit the form, without using JavaScript?
A solution working in quirks mode is fine, too.
When a <select>
field is focussed, pressing the Enter key does not submit the form. Is it possible to make it submit the form, without using JavaScript?
A solution working in quirks mode is fine, too.
It is not possible to alter this behaviour without using JavaScript. According to the discussion at this question, capturing the keyup
event is the best option for browser compatibility.
You may want to reconsider altering this behaviour, as discussed at this question you may surprise your users by doing so.