JQuery if is visible doesnt work with parent-child?
<p>I have a parent DIV (.box) and a child (#display). I would like fade out the parent if the child is hidden. But it still doenst work :S</p>

<pre><code>if( $('#display').is(':visible') ) {
     $(this).parent(".box").fadeTo(100,1);
} else {
     $(this).parent(".box").fadeTo(100,0.7);
}
</code></pre>
