168
rated 0 times
[
173]
[
5]
/ answers: 1 / hits: 42698
/ 10 Years ago, tue, april 15, 2014, 12:00:00
I know I can get the number of rows in an HTML table with the following jQuery:
var rows= $('#myTable tbody tr').length;
However, how can I get the number of rows that have a given class (e.g., <tr class=MyClass>
). How can I count the number of rows in a table with a class of MyClass?
More From » jquery