title: JQuery Check Input File
body: <p>I have file input fields in a group like below. I'd like all of them to be required fields.</p>
  
  <pre><code>&lt;!-- file upload group --&gt;
  &lt;div class="Fieldset FileUpGroup"&gt;
    &lt;span class="Legend"&gt;File Upload Group: (required)&lt;/span&gt;
    &lt;input name="fileUploads[]" type="file"&gt;
    &lt;input name="fileUploads[]" type="file"&gt;
    &lt;input name="fileUploads[]" type="file"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I have the following JQuery to validate, but it only validates the first one.</p>
  
  <pre><code>$('.FileUpGroup').each(function() {
      if($(this).find('input[type=file]').val() == '') { 
          Response('- Upload file not selected!', true);
          $(this).addClass('Error').fadeOut().fadeIn();
          return false;
      }
      else {
          $(this).removeClass('Error');
      }
  });
  </code></pre>
  
  <p>Thank You!</p>