var cntr = 0; var TableData; //+ $(tr).find("td:input." + dtp).val(); $('#dta tr').each(function (row, tr) { var dtp = "datepicker_" + cntr; if (cntr > 0) { TableData = $(tr).find('td:eq(0)').text() + ', ' + $(tr).find('td:eq(1)').text() + ', ' + $(tr).find('td:eq(2)').text() + ', ' /*+ $(tr).find('td:eq(3) input[type="text"]').val();*/ + $(tr).parents('td').siblings().find('input'); alert(TableData); } cntr++; if (cntr > 4) return; });
$(tr).parents('td')
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)