1$('.itemTable').eq(2);
2//this will grab the 3rd row of the table with the class itemTable
1$("document").ready(function() {
2 var tb = $('.layui-table:eq(0) tbody');
3 var size = tb.find("tr").length;
4 console.log("Number of rows : " + size);
5 tb.find("tr").each(function(index, element) {
6 var colSize = $(element).find('td').length;
7 console.log(" Number of cols in row " + (index + 1) + " : " + colSize);
8 $(element).find('td').each(function(index, element) {
9 var colVal = $(element).text();
10 console.log(" Value in col " + (index + 1) + " : " + colVal.trim());
11 });
12 });
13});