Combining form onsubmit parameter with jquery submit event handler
问题 I have a form that is being generated by legacy back-end code that, for a variety of reasons, I can't change. The form is straightforward HTML: <form action="#" id="theForm" onsubmit="return check_theForm(); method="post"> <!-- fields go here --> </form> On submission the onsubmit parameter fires to verify that all compulsory field have been filled in, using the check_theform() function which contains "plain vanilla" javascript (i.e. no jQuery code). In other words, basic stuff. I'm now