jQuery :nth last of type() Selector
jQuery :nth-last-of-type() Selector
The :nth-last-of-type(n) selector is used to select all elements that are the nth child that belong to a particular type, of their parent. but counting from the last child.
Syntax:-
Its syntax is:- :nth-last-of-type(n | even | odd | formula);
Further Explantion:-
Parameter | Description |
---|---|
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). |