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 21, 2015 by loknath.ganji
0 votes
8 views



Related Hot Questions



Government Jobs Opening

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

answered Sep 21, 2015 by sachin valanju
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 21, 2015 by akasati02
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 21, 2015 by kinnari

...