How to trigger validation without using a submit button

后端 未结 2 600
野的像风
野的像风 2021-01-01 19:38

I am using the jQuery Validation plugin and trying to trigger the validation/submit with an alternate button. I would like to create a jquery function that will change the c

2条回答
  •  失恋的感觉
    2021-01-01 19:48

    You have to call validate with no arguments to trigger the validate function, like this:

    $("#applicant-form").validate();
    

提交回复
热议问题