Re: [jQuery] Filtering on hidden contents

2009-12-08 Thread Mauricio (Maujor) Samy Silva
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

[jQuery] Filtering on hidden contents

2009-12-07 Thread wandrian
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