title: jQuery if one of many inputs has any value, then add a class
body: <p>Trying to add a class to a button if there has been any input in one of six text fields on the page. Getting a console error that says "<code>Uncaught TypeError: Object [object Object] has no method 'value'</code>" referring to my <code>var val</code> line.</p>
  
  <p>Syntaxual? Thanks for your help.</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;input id="a" class="answer" type="text"&gt;
  &lt;input id="b" class="answer" type="text"&gt;
  </code></pre>
  
  <p>JavaScript:</p>
  
  <pre><code>var val = $('.answer').each(function(){
      $(this).value();
  });
  
  if (/^\s*$/.test(val)){
      $('#theOne').addClass('show');
  }
  </code></pre>