jquery selector question: do something only if all elements are hidden
Posted
by Emin
on Stack Overflow
See other posts from Stack Overflow
or by Emin
Published on 2010-05-23T11:49:56Z
Indexed on
2010/05/23
11:50 UTC
Read the original article
Hit count: 199
jQuery
|jquery-selectors
I need to do something only if all the li's in a given ul are hidden.. this doesn't seem to do the trick. is there a way?
if ($('#some_ul li:hidden')) {
// do something only if all 'li's in a given ul are hidden
}
© Stack Overflow or respective owner