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
Post a Comment