title: jquery validation plugin rules with condition?
body: <p>I am using Jquery validation plugin , I have a big form with "Save","Submit" buttons.
  I have two sets of rules for two buttons.</p>
  
  <ol>
  <li>whenever user clicks save button only valid rulesOne set of rules (mandatory fields email, password).</li>
  <li>whenever user clicks save button only valid rulesTwo set of rules (all required fields).</li>
  </ol>
  
  <p>Any one suggest please, how to develop like this ?</p>
  
  <p>Set1 rules: </p>
  
  <pre><code>var rulesOne = { email : "required" .......}
  </code></pre>
  
  <p>Set2 rules:</p>
  
  <pre><code>var rulesTwo = {city : "required" ..........}
  
  $("#form1").validate({
  ignore : '*:not([name]),:hidden',
  rules : rules});
  </code></pre>
  
  <p>If save button </p>
  
  <pre><code>if(this.id == "personal_save"){
    setOne rules test ?
  else
  // submit button (check all validations)
  {
    setTwo rules test ?
  }
  </code></pre>
  
  <p>Thanks 
  Prasad</p>