Using jQuery, is there a quick way to find out if an element is its last parent child?
Example:
<ul> <li id="a"></li> <li id="b"></li> <li id="c"></li> </ul> $('#b').isLastChild(); //should return FALSE $('#c').isLastChild(); //should return TRUE
jquery
cambraca Nov 17 2018-10-17T00: 00Z
source share