loop trough (input and select) elements and check if the value is empty
<p>i want to loop trough all the (input and select) elements inside a div and check if the value is empty and then hide it</p>

<p>i have tried this , but it doesn't work : </p>

<pre><code>$("#tabspanel").find('input[type=text] , select').each(function (){
    if (!(jQuery.trim(this.value).length &gt; 0)) {
        this.hide();
    }
});
</code></pre>
