jquery :last missing multiple classes
- by mickyjtwin
I have an unordered list, and am using jquery to find the last ul and apply a class.
jQuery("ul.class1:last").addClass("lastUi");
The html is as follows:
<ul class="class1"></ul>
<ul class="class1"></ul>
This is working fine, however it has now changed in that another class is being added to the list so the html looks…