Below I have a submit button:
<p><input id="submitBtn" name="submitDetails" type="submit" value="Submit Details" onClick="myClickHandler();" /></p>
Now when the user clicks on the submit button, it performs the jquery function below:
Now what the function does is that if the validation() function is met, then it will perform the showConfirm() function (this function will display the confirmation box). But what is happening at moment is that if the validation() function is not met, it is still submitting the page.
Now the problem is that I cannot pet
in the submit button because this will mess up my page numbers. So my question is that is there a way in the jquery function so that if the validation() function is not met, then do not submit the page?