jquery if - event shortcut exists?
<p>I have a lot of condition in the code, where show/hide of elements depends if input value is not empty. </p>

<p>Does exist any shorter version for these lines?</p>

<pre><code>if ($("input#x").val())
{
   $("#lbl_y").show();
}
else
{
   $("#lbl_y").hide();
}
</code></pre>
