jQuery Validate problem

jQuery Validate problem

I can use condition to decide validate or not, for example

  1. rules: {
  2.       money: {
  3.             required: function() {
  4.                   return condition ? true : false;
  5.             }
  6.       }
  7. }

therefore, if condition is true, the filed should be input something, but I can't do the same thing to other methods

  1. rules: {
  2.       money: {
  3.             required: function() {
  4.                   return condition ? true : false;

  5.             },
  6.             digits: function() {
  7.                   return false;
  8.             }
  9.       }

  10. }
     
even I use return false, it's still check the field's format, how to enable and disable the check method as I want like required?