How do I remove jQuery validation from a form?

后端 未结 10 1594
逝去的感伤
逝去的感伤 2020-12-02 20:10

I\'m using the jQuery validation plugin to validate a form, and I\'d like to remove the validation and submit the form if a certain link is clicked.

I am submitting

10条回答
  •  既然无缘
    2020-12-02 20:29

    I recently upgraded to 1.5.5 of Jörn's validator script and the removeValidator function has been deprecated.

    
    ...
    jQuery.extend(
              jQuery.fn, 
              {
              removeValidator: function(){
                  this.unbind();
                  jQuery.removeData(this[0], 'validator'); 
              }
    ...
    

提交回复
热议问题