jQuery form.submit() not working

I was working on a basic html form recently. The form was using the jQuery validation plugin. Once validated I needed to submit the form using the jQuery .submit() function.
For some reason this was not working for me. After searching Google for a very long time and trying out lots of potential solutions I found the answer was a very simple change.
This was my issue. The name=”submit” was conflicting with the jQuery .submit() function.

<input type="submit" name="submit" value="Submit" />

It should have been:

<input type="submit" value="Submit" />

Leave a Comment