Can I count elements using jQuery? -
I have a list in ul
which is in an ASP repeater list overflow with a scrollbar Is set to and only shows 16 li
s at a time, is there any jQuery math function that I want to select that "16" " li
Allow and add a specific class to it?
The last one will not be selected because the 16th div
is not the last div
Because it is in a repeater.
Yes, it is called.
Sample:
$ ("ul li: nth-child (16n)") .addClass ("sixteenth");
Comments
Post a Comment