Based on this Stackoverflow question there seems to be no defined standard behaviour, or shared implementation across browsers, for hitting the [Enter] key in an HTML form field when multiple forms are present on the page. I'd like a jQuery solution that detects [Enter] on any form field, discovers its immediate enclosing form, and .click()'s that form's Submit button.
The end result is the form expected to be affected by the user is submitted in any browser when [Enter] is used on a multi-form page.
I'm looking for a generic solution, like a jQuery plugin, that can be applied to multiple websites having this problem and for it to immediately take effect to submit the expected form. I don't want to have to code conditional statements or alter them per form or website.
Optional Update:
For a more detailed scenario, consider each form has only one type=Submit button and that's the default/target button Any other buttons on the form are type=button and not considered for submission.