This function is called from an onsubmit event handler attached so it's called only after any HTML5 form validation requirements have been met.. To … Im new to jQuery and AJAX so it was my mistake. Everything works fine for functions a and b, but when I throw functionc in and start passing parameters to it, the code doesn't execute. What is a Form? JavaScript submit form with email validation example The submit event fires when the user submits a form. If you want to validate all the input fields at once after the user fills up the entire form fields, you can use onsubmit() validation. Thanks, Tracy, However, I'm trying to say the following: