14,954
edits
| 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 == | ||
* <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 | ||