jQuery :nth last child() Selector
jQuery :nth-last-child() Selector
The :nth-last-child(n) selector is used to select all elements that are the nth-last-child of their parent regardless of their type but counting starts from the last child, not the first child.
Its syntax is:- :nth-last-child(n | even | odd | formula);
|n||The index of each child to match.|
|even||Selects each even child element|
|odd||Selects each odd child element|
|formula||Specifies which child element(s) to be selected with a formula (an + b).|