I have a form with two buttons. The first is hidden using Javascript.
When I press enter in a textfield in IE, the form does not submit. I assume it is because it has chosen the first button as default submit button, but since that button is hidden it does not work.
I have solved this by submitting the form on an enter keydown Javascript event. However, this also submits the form if the user presses enter to select an item from the browser's autocomplete dropdown.
How do I submit the form on enter in IE, without disturbing the autocomplete functionality?