I have the following Javascript code in my web page that SHOULD ensure data validation and then (if the form is valid) submit the data to an AJAX call: The problem is, the validation works, but it doesn’t. When the form fields are not valid, it hits this block: and the alert is displayed. The very next line should force