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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -