jquery.validate失去焦點時就驗證

ITzhongzi發表於2017-06-06

1.onfocusout   失去焦點時驗證

[javascript] view plain copy
  1. $("#form").validate({  
  2.                 onfocusout: function(element) { $(element).valid(); },  
  3.                 rules:{  
  4.                       
  5.                 }  
  6.                   
  7.             });  

相關文章