That’s because you shouldn’t just use the submit
function, but trigger
the submit like:
$("#MyForm").trigger('submit');
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
- Prevent form redirect OR refresh on submit?
- 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]
- Get content of span
- copying the value of a form’s file input field to another form’s input field
- How to send data to the server via Ajax?
- Making a quiz in HTML and Javascript [closed]
- Add/Remove Class of Nav Objects on Page Scroll
- How to save an image to localStorage and display it on the next page?
- Make function wait until element exists
- How to convert html table to excel with multiple sheet?
- How to check if input file is empty in jQuery
- Fill available spaces between labels with dots or hyphens
- Uncaught TypeError: Cannot read property ‘top’ of undefined
- Set Caret Position in ‘contenteditable’ div that has children