Guest User

Untitled

a guest
Jun 19th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. $("ul.class-to-look-for").each(function() {
  2.  
  3. var totalLists = $(this).find("li").length;
  4.  
  5. if(totalLists = 1) {
  6.  
  7. $(this).parent().addClass("class-to-add");
  8.  
  9. }
  10. });
Add Comment
Please, Sign In to add comment