Advertisement
Guest User

Untitled

a guest
Sep 6th, 2015
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var text = $('.stars').text();
  2. var newText = text.replace(/[^\d\+]/g, '<i class="fa fa-star"></i>');
  3. $('.stars').html(newText); // .text() doesn't neither work
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement