JQUERY + update only empty <input
<pre><code>          $('input.metaTitle').filter(function() {
            $(this).val('ya');
          });
</code></pre>

<p>The above code finds all inputs with the metaTitle class.</p>

<p>I can't seem to update it to only select empty  fields. I've tried things like:</p>

<pre><code>          if(!$('input.metaTitle').val()).filter(function() {
            $(this).val('ya');
          });
</code></pre>

<p>Can someone advise how to limit this to only empty inputs.</p>

<p>thx</p>
