Answers for "jquery tr first td"

0

jquery get second td of tr

$(this).closest('tr').find('td:nth-child(2)').text()
Posted by: Guest on November-20-2020
1

jquery for each tr in td

// tr is the jquery object
$(tr).find('td').each (function (index, td) {
  console.log(td)
});

// for each tr get each td

$('#tableContent tr').each(function(index, tr) {
  $(tr).find('td').each (function (index, td) {
    console.log(td)
  });
});
Posted by: Guest on February-03-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language