Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

Organizational Research By

Surprising Reserch Topic

jquery count number of rows in a table


jquery count number of rows in a table  using -'jquery,count,row'

asked Sep 16, 2015 by atulpariharmca
0 votes
14 views



Related Hot Questions



Government Jobs Opening

Obviously this is a quick example, but it may be helpful.

answered Sep 16, 2015 by yogeshplv
0 votes

I found this to work really well if you want to count rows without counting the th and any rows from tables inside of tables:

var rowCount = $("#tableData > tbody").children().length;
answered Sep 16, 2015 by sanjaypal1983
0 votes

try this one if there is tbody

Without Header

$("#myTable > tbody").children.length

If there is header then

$("#myTable > tbody").children.length -1

Enjoy!!!

answered Sep 16, 2015 by abhimca2006

...