title: Checking an array of input boxes are not empty
body: <p>Preferably wanting to do this in jQuery, simple validation to check if the input boxes are empty. However, these are a dynamic array of input boxes. The code should help make more sense:</p>
  
  <pre><code>&lt;input type="text" id="qtn" name="question" /&gt;
  &lt;input type="text" name="answer[]" /&gt;
  &lt;button type="button" id="btn"&gt; Save &lt;/button&gt;
  </code></pre>
  
  <p>I understand the usual idea for the question input would involve something like this:</p>
  
  <pre><code>$('#btn').click(function () {
      var question = $.trim($('#qtn').val());
  
      // Check if empty of not
      if (question === '') {
          alert('Text-field is empty.');
          return false;
      } else {
          $('#form').submit();
      }
  });
  </code></pre>
  
  <p>How would this work for the <code>answer[]</code> input type as there will be a dynamic number of answers and want to make sure that however many the user has selected, that all these boxes are filled.</p>
  
  <p>Thanks! </p>