Posts Tagged ‘submit’

Pre Check Form Before Submit

Pre Check Form Before Submit

Posted on: November 8th, 2011 by deanpugh

Below is a script to allow you to run a precheck function in Javascript, preventing the form from submitting if you detect a problem. First, in a separate, external Javascript file, copy the below script: The above code is checking a checkbox value in the sent form to see if it has been selected. If it has, then […]