jquery - Validation not working in HTML5 form -


i have form needs have 2 buttons determine fundamental action of form. set 2 buttons this;

    $('#get-quote').click(function() {     $("#quote-form").attr("action", "mail.php?action=quote");     $('#quote-form').submit(); });  $('#get-bind').click(function() {     $("#quote-form").attr("action", "mail.php?action=bind");     $('#quote-form').submit(); }); 

my problem html validation on required fields skipped, ie fields can blank , form still submitted. see validation tips "this field required" flash briefly form submitted same.

what doing wrong?


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -