.
How to use CSS to choose the last element containing fruit class & lt; Li & gt; n
CodePudding user response:
Seems only can get the last element through the label can not by class for the last elementCodePudding user response:
The last child -CodePudding user response:
Li: $(" last "). HasClass (" fruit ")