64
favorites
favorites
3
comments
comments
Submit a form by hitting the enter button inside an input field with jQuery
Users a used to submit a form without clicking the submit button of a form. They expect to get to the next step or page just by hitting the enter button. The code snippets binds the keypress action to all form with the specific CSS-class "enter-submit". In order to bind the action also for ajax-loaded elements we use the binding function "live". ...