title: Get name of first empty input field returns "undefined" (jquery)
body: <p>I'm running into a problem here with getting the attribute name for the first empty input field. Can't figure out, why he returns "undefined" every time.</p>
  
  <pre><code>&lt;input type="text" name="test_1" value="not empty"&gt;
  &lt;input type="text" name="test_2"&gt;
  &lt;input type="text" name="test_3" value="not empty"&gt;
  &lt;input type="text" name="test_4"&gt;
  &lt;script&gt;alert($('input[value=""]').first().attr("name"));&lt;/script&gt;
  </code></pre>
  
  <p>Thanks alot for any help.</p>