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
Post a Comment