title: when one field is filled other fields must be required
body: <p>I created a form.In that i added validations.if one field in the form is filled,all other fields must be filled or if none of the fields are filled then no need of checking validations.
    Iam using a method focus to add validations.once selecting a field,all fields are required validation executing.</p>
  
  <p>iam using jquery-validation</p>
  
  <pre><code> &lt;script&gt;
  
  $(document).ready(function () {
  
      $("#myFormId").validate(
              {
  
              }
      );
  
      $('.contact1').focus(function () {
          $('.contact1').addClass("required");
      });
      $('.contact2').focus(function () {
          $('.contact2').addClass("required");
      });
  
  
  
  });
      &lt;/script&gt;
  </code></pre>
  
  <p>when i clicking on the field required is adding to field.how to remove required if no field is filled  in the form</p>