I want to select the last td in each tr using the .each () and .last () loop.
This is what I do:
$('tr:has(td)').children().each(function(){return $(this).parent().last()});
But this code returns every td, not just the last of each row.
Can someone tell me how to fix this?
Thanks in advance.
user1791841
source share