title: jquery validate when field not empty
body: <p>I validate my form using <a href="http://jqueryvalidation.org" rel="noreferrer">jquery validate</a> like this:</p>
  
  <pre><code>$("#formuser").validate({
  
          rules: {
  
             accountname: {
              required: true,
              minlength: 6
          },
          T1: {
              required: true,
              minlength: 6
          },
              accountpassword1: {
                  required: true,
                  minlength: 8
              },
              accountpassword2: {
                  required: true,
                  minlength: 8,
                  equalTo: "#accountpassword1"
              },
          },
   });
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;input id="accountpassword1" class="text-input form-control"  type="text" name="accountpassword1" size="24" placeholder="password" &gt;
  
  &lt;input class="text-input form-control"  type="text" name="accountpassword2" size="24" placeholder="password" &gt;
  </code></pre>
  
  <p>this worked for me But. I need to check jquery validate when password1  and password 2 not empty. my mean is if password input is empty jquery validate not validate field else validate field password1 and password2.</p>
  
  <p>how do create this?</p>
  
  <p><strong>NOTE:</strong>: i need to only check validate <code>accountpassword1</code> and <code>accountpassword1</code> with this method.</p>