javascript - jQuery search by class AND css value NOT equal to foo -


not sure in jquery documentation find this. have jquery element found on dom.

within that, want elements class == 'bar' , css value 'display' == 'none'. first part easy:

$myelement.find(".bar"); 

how can elements within list css value 'display' == 'none'?

all in 1 line if possible. thanks!

you can use filter:

$myelement.find(".bar").filter(function(){   return $(this).css('display') == 'none'; }).apply_your_jquery_method_now(); 

Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -