jQuery Validation plugin: disable validation for specified submit buttons

后端 未结 12 788
故里飘歌
故里飘歌 2020-11-22 16:14

I have a form with multiple fields that I\'m validating (some with methods added for custom validation) with Jörn Zaeffere\'s excellent jQuery Validation plugin. How do you

12条回答
  •  庸人自扰
    2020-11-22 16:59

    Other (undocumented) way to do it, is to call:

    $("form").validate().cancelSubmit = true;
    

    on the click event of the button (for example).

提交回复
热议问题