title: File upload validation with jQuery Validate plugin
body: <p>I have a weird problem.I have a form with a file upload and few other textarea .each and every field is required.so basically when few fields are left blank,the validation works fine but if and only if the file upload is left blank,the form gets submitted.</p>
  
  <p>Here is my code</p>
  
  <pre><code> &lt;li &gt;
    &lt;p&gt;
      &lt;label for="rad"&gt;radio label:
      &lt;/label&gt;&lt;br&gt;
  
     &lt;input type="radio" name="rad" value="yes" style="width:20px"&gt;&amp;nbsp; Yes&amp;nbsp;&amp;nbsp;&lt;/input&gt;
     &lt;input type="radio" name="rad" value="no" style="width:20px"&gt;&amp;nbsp; No&lt;/input&gt;&lt;br/&gt;
     &lt;label for="cv" class="error" style="display:none"&gt;This field is required&lt;/label&gt;
     &lt;/p&gt;
      &lt;p&gt;
      &lt;input type="file" name="fupl" style="display:none;margin-top:10px" id="fup"/&gt;
      &lt;label for="fupl" class="error" style="display:none;color:red"&gt;This field is required&lt;/label&gt;
      &lt;/p&gt;
      &lt;/li&gt;
      &lt;br&gt;
      &lt;li&gt;
    &lt;label&gt;checkbox label
    &lt;/label&gt;&lt;br&gt;&lt;br&gt;
   &lt;input type="checkbox" name="cb" value="tick" style="width:20px"&gt;&amp;nbsp;&amp;nbsp;   &lt;small&gt;checkbox field&lt;small&gt;&lt;/input&gt;&lt;br&gt;                                          &lt;label for="fee" class="error" style="display:none"&gt;This field is required&lt;/label&gt;
      &lt;/li&gt;
    &lt;br&gt;&lt;li&gt;
   &lt;input type="submit" class="button" value="SUBMIT" style="float:right"/&gt;
   &lt;/li&gt;
   &lt;script&gt;
   $(document).ready(function()
   {
   $("input[type='radio']").change(function(){
  if($(this).val()=="yes")
   {
   $("#fup").show();
   }
  else
  {
    $("#fup").hide();
   }
  });
  });
  </code></pre>
  
  <p></p>
  
  <p>and this my jquery<br></p>
  
  <pre><code>  $('#form').validate({
  rules: {    
  fupl: {
      required: true,
      accept:'docx|doc'
      },    
  </code></pre>