Try this:
( $('.location div:visible').length == 0 ) ? $('.location').hide() : '';
MaurĂcio
De: wandrian
Para: jQuery (English)
Enviada em: segunda-feira, 7 de dezembro de 2009 23:21
Assunto: [jQuery] Filtering on hidden contents
I am trying to figur
I am trying to figure out if all the child divs of a containing div
are hidden and if so I then want to hide the parent containing div.
I am trying some thing like this:
$('div.location').filter(function(){
return (($this>*:visible).length==0)
}).hide();
Obviously this do
2 matches
Mail list logo