loop through input and select elements and hide the previous td
<p>The code below is looping through all the <code>input</code> and <code>select</code> elements inside a <code>div</code> and checking if the value is empty and then hiding it, it is working perfectly: </p>

<pre><code>$("#customfields_1 :input").filter(function() {
    return $.trim(this.value).length === 0;
}).hide();
</code></pre>

<p>but now what I really want is to hide the previous <code>td</code>, something like this:</p>

<pre><code>$("#customfields_1 :input").filter(function() {
    return $.trim(this.value).length === 0;
}).prev('td').hide();
</code></pre>
