7
Tengo 3 tablas con el mismo nombre de clase table-sort
. Me gustaría tener acceso a los mesa por .each()
y contar el tr
dentro del tbody
.
es que $("this tbody tr").length
?
$('.table-sort').each(function(index) {
var rowCount = $("this tbody tr").length; //not work , Could you please correct this?
var rowCount1 = $(this).find('tbody > tr').length; //this is working fine
alert(rowCount + '-' + rowCount1);
})
Gracias Gaby, es increíble, respuesta rápida. – Jahangir
funciona increíble !! –