simple jquery validation form on submit php code example
Example 1: jquery validation plugin
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.19.2/jquery.validate.min.js"></script>
Example 2: jquery validate
$("#myform").validate({
debug: true
});