[jQuery Validation Plugin](https://jqueryvalidation.org/) - Form validation made easy code example
Example: jquery form validation
function submitFunction(event){
event.preventDefault();
}
$("#form_id").submit(submitFunction);
function submitFunction(event){
event.preventDefault();
}
$("#form_id").submit(submitFunction);