Javascript: Difference between revisions

Jump to navigation Jump to search
No change in size ,  16 February 2013
m
Line 24: Line 24:
** <nowiki>$("#selector_id").css("display", "none");</nowiki>
** <nowiki>$("#selector_id").css("display", "none");</nowiki>


== count the number of visible table rows ==
== Count the number of visible table rows ==
* <nowiki>$('#selector_id:visible').length;</nowiki>  jQuery v.1.9.1<ref>[http://stackoverflow.com/questions/2931893/jquery-selector-to-count-the-number-of-visible-table-rows jquery selector to count the number of visible table rows? - Stack Overflow]</ref>
* <nowiki>$('#selector_id:visible').length;</nowiki>  jQuery v.1.9.1<ref>[http://stackoverflow.com/questions/2931893/jquery-selector-to-count-the-number-of-visible-table-rows jquery selector to count the number of visible table rows? - Stack Overflow]</ref>
* <nowiki>$('#selector_id:not([style*="display: none"])').length;</nowiki> {{exclaim}} jQuery v.1.9.1 + {{IE}} v.8 not work
* <nowiki>$('#selector_id:not([style*="display: none"])').length;</nowiki> {{exclaim}} jQuery v.1.9.1 + {{IE}} v.8 not work

Navigation menu