I need to check if the form has been submitted by the user, and then perform some operation before it is programmatically submitted.
So, I have this code:
$('form').submit(function (e) { e.originalEvent && e.preventDefault();
This works fine, but when the submit button of the form is called "submit", it does not.
It even works fine if the button is called "Submit." (upper case "S")
I'm just wondering why this is?
Here is the script
source share