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
if( $('#display').is(':visible') ) {
$(this).parent(".box").fadeTo(100,1);
} else {
$(this).parent(".box").fadeTo(100,0.7);
}