Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.19 KB | None | 0 0
  1.     $('li').each(function(){
  2.     if($(this).find("div:contains("+string+")").length) {
  3.         //do something with "this" (li)
  4.         $(this).find("div").parents('li').css("color", "red");
  5.     }
  6.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement