Advertisement
Guest User

Untitled

a guest
May 24th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.27 KB | None | 0 0
  1.     <script>
  2.     $("a").each(function(i, v) {
  3.  
  4.         if ($(this).is(':contains("*")')){
  5.             $(this).addClass('btn btn-primary');
  6.             var newValue = $(this).text().replace('*', '');
  7.  
  8.             $(this).text(newValue);
  9.         }
  10.     })
  11.  
  12. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement