Get Number Of Rows In A Table Using jQuery

For More Videos Visit Our YouTube Channel




Here we consider how to get the number of rows in a table using jQuery. Lets start with one example here. Suppose we have a table as shown here.

Get Number Of Rows In A Table Using jQuery, Get Number Of Rows In A Table In jQuery, Get Number Of Rows In A Table, Get Number Of Rows In A Table Using jQuery, Number Of Rows In A Table In jQuery, Number Of Rows In A Table, Rows In A Table In jQuery, Rows In A Table Using jQuery, Find Rows In A Table Using jQuery, Length of Rows In A Table Using jQuery, Length of Rows In A Table In jQuery, Table Rows In Jquery, Jquery

This table contains four rows of records. Now lets consider how to get the number of rows using jQuery.

var Count = $('#tblID tr').length;


Here we first find the table with rows and will take the length of these rows.

var Count = $('#tblID tr').size();


size() also gives the same result, but most preffered is length over size(). By this way we can get the number of rows in a table using jQuery.