-5

here is the markup

how to calculate the number of <tr> using php? or in jquery if it's not possible.

j08691
  • 204,283
  • 31
  • 260
  • 272
  • possible duplicate of [jQuery: See how many elements a selector matched?](http://stackoverflow.com/questions/2838518/jquery-see-how-many-elements-a-selector-matched) – Patrick Q Aug 12 '14 at 16:17
  • 1
    Duplicate of [jQuery - count number of rows in a table](http://stackoverflow.com/questions/1149958/jquery-count-number-of-rows-in-a-table) – Ljungren Aug 12 '14 at 16:18

2 Answers2

1

In jQuery

var rowCount = $("table.iB tbody tr").length;
tymeJV
  • 103,943
  • 14
  • 161
  • 157
0

Using jquery:

$('.iB >tr').length

or

$('.iB').find('tr').length
SSA
  • 5,433
  • 4
  • 36
  • 50