javascript - Select only elements with a certain CSS attribute using JQuery -
ok have code
$("#search-results-all").children(".search-result-item").length; now, want there select .search-result-item elements visible using css attribute visibility:visible. how can make possible?
p.s. sorry don't know type in google can start searching.
update...
well worked doing this
$("#search-results-all").children(".search-result-item:visible").length; thank answers
:visible selector - selects elements visible.
$("#search-results-all").children(".search-result-item:visible").length; or
$("#search-results-all").children(".search-result-item")).is(':visible');
Comments
Post a Comment