$("input").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
$("form").submit();
}
});
More Related Contents:
- Prevent users from submitting a form by hitting Enter
- Clear form fields with jQuery
- Get checkbox value in jQuery
- How to add additional fields to form before submit?
- Prevent redirect after form is submitted
- How to use jQuery to add form elements dynamically
- calculate the number of html checkbox checked using jquery
- HTML5 textarea placeholder not appearing
- HTML5 validation before ajax submit
- jQuery html attribute not working in IE
- Force a checkbox to always submit, even when unchecked
- submitting multiple forms with AJAX
- HTML nchor Tag doesn’t show link
- Use jQuery to hide a DIV when the user clicks outside of it
- jQuery: how to get which button was clicked upon form submission?
- Scroll to bottom of Div on page load (jQuery)
- Submitting HTML form using Jquery AJAX
- jQuery’s .on() method combined with the submit event
- Retrieving HTTP status code from loaded iframe with Javascript
- Auto-click button element on page load using jQuery
- Submit form after calling e.preventDefault()
- jQuery get selected option value (not the text, but the attribute ‘value’)
- jQuery checkbox event handling
- Draggable div without jQuery UI
- Trying to make multiple background images cycle through a slideshow with CSS and JQUERY
- jquery disable submit button on form submission
- Jquery Multiple load in a DIV
- Is there an “after submit” jQuery option?
- How can I change text after time using jQuery?
- How do I select the parent form based on which submit button is clicked?