jQuery check if <input> exists and has a value
<p>For example, if I have</p>

<pre><code>&lt;input type="text" class="input1" value="bla"/&gt;
</code></pre>

<p>Is there a way to check if this element exists and has a value in one statement?
Or, at least, anything shorter then</p>

<pre><code>if($('.input1').length &gt; 0 &amp;&amp; $('input1').val() != '')
</code></pre>

<p>Just getting frustrated here with mile-long conditions :(
Thanks!</p>
