I had two tables with same class name "Test", I need to find out last of each of first table using JQuery
Please help me out.
jQuery 1.1.4 introduced the last-child selector:
Description: Selects all elements that are the last child of their parent.
While :last matches only a single element, :last-child can match more than one: one for each parent.
$("table:first tr td:last-child");
$('table:first tr').each(function() {
var lasttd= $(this).find(':last-child')
//your code
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With