Hi,
For example I have to do it manually like this:
function checkDivUppersClosed() {
var allOpened = true; $('.classUpper').each(function (index, domEle) { allOpened &= $(this).parent().hasClass('closed'); }); return allOpened; }
I know that if I select $('.closed').size() will return the length as well. But in my case, some divs have the class classUpper but not at all.
Thanks in advance.