title: Validation, how it make in jquery
body: <p>I have two main fields. <code>Pesel</code> and <code>Nip</code>. </p>
  
  <p>But if one is filled the other does not have to be filled. </p>
  
  <p>For Example, If I complete the field <code>Nip</code>, I don't have to fill field <code>Pesel</code>, but I can do it.</p>
  
  <pre><code>$("#form1").validate({
    submitHandler:function(form) {
    SubmittingForm();
  
  },
     rules: {
        imie: "required", 
        adres_email: {                // compound rule
          required: true,
          email: true
        },
        nazwisko: {                // compound rule
          required: true,
        },
        sid: {
          required: true,
          minlength: 9,
          sid:true
        },
         pesel: {
           minlength: 11,
           pesel:true
         },
         nip: {
           required: true
         },
     }
  
     });
     });
  &lt;/script&gt;  
  </code></pre>
  
  <p>I download it from the link: <a href="http://bassistance.de/jquery-plugins/jquery-plugin-validation" rel="nofollow">bassistance.de/jquery-plugins/jquery-plugin-validation</a></p>