Right... I need to find all < ul style=\"display: block;\"> elements, so that I can set it do display:none.
I think I\'m on the right path here... but not quite t
Don't know how to do it in one line, but here's how you can do it in a couple more:
jQuery('#adminMenu li').find("ul").each(function (){
if($(this).css("display") == "block"){
// do something
}
});
If what you want is to handle all visible elements (instead of only the display: block ones), you could try the :visible selector instead.