Form validation in javascript does not work probably

后端 未结 3 1752
孤城傲影
孤城傲影 2021-01-29 01:34

I am working on this form which is suppose to validate the form before submitting

$(document).ready(function() {
    $(\"#form3\").validate();
    if ($(\'#form3         


        
3条回答
  •  不要未来只要你来
    2021-01-29 01:52

    I think by default after successful validation it will submit the form . However i don't know why you need to resubmit the form.

    If you need to submit manually you can use the SubmitHandler place to submit your form.

    $("#form3").validate({
       submitHandler: function(form) {       
         form.submit();
       }
    });
    

提交回复
热议问题