[jQuery] if all classes are hidden?
Hi all,
I have a bunch of divs on my page that all have a class of box, the
boxes can be hidden by the div id, so when all are hidden, i also want
to hide their parent div - left
the code below hides the parent div as soon as one box is hidden, but
i don't want to do this.
Any ideas on how I would hide the parent div - left - only after all
the divs with the class of box are hidden?
Thanks, Daithi.
if ( $('.box').is(':hidden') ) {
$('#left').hide();
}