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