Just handle the form submission on the submit event, and return false:
$('#contactForm').submit(function () {
sendContactForm();
return false;
});
You don’t need any more the onclick event on the submit button:
<input class="submit" type="submit" value="Send" />
More Related Contents:
- Stop form refreshing page on submit
- Clearing using jQuery
- Submitting a form on ‘Enter’ with jQuery?
- How to send a JSON object using html form data
- How to submit an HTML form without redirection
- Drop-down box dependent on the option selected in another drop-down box
- How to prevent page from reloading after form submit – JQuery
- Property ‘submit’ of object # is not a function
- Adding rows dynamically with jQuery
- Best JavaScript solution for client-side form validation and interaction? [closed]
- Change the content of a div based on selection from dropdown menu
- jQuery Change event on an element – any way to retain previous value?
- Submit form after calling e.preventDefault()
- Trigger standard HTML5 validation (form) without using submit button?
- How do you limit options selected in a html select box?
- How can I get all a form’s values that would be submitted without submitting [duplicate]
- Trigger standard HTML validation (form) without using submit button? [duplicate]
- submit event does not fire if submit initiated programmatically
- Get content of span
- copying the value of a form’s file input field to another form’s input field
- .val() don't edit input
- How to have html popup appear over main html page?
- jquery get id of input selected text
- Why does forms with single input field submit upon pressing enter key in input
- HTML5 Local Storage fallback solutions [closed]
- jQuery $(“#radioButton”).change(…) not firing during de-selection
- jquery validate plugin on dynamic form inputs not working
- Is it possible to add html inside a title attribute?
- How to set custom validation messages for HTML forms?
- Keep tabbing within modal pane only