$(document).ready(function() {
var text = $(".name")
return $(this).text().replace("★", " ★");
});
This is what I have right now but doesn't seem to work idk why?
I used to have code that did work just only in chrome console.
$(".name").text(function() {
return $(this).text().replace("★", " ★");
});
答案 0 :(得分:0)
I think this is more what you're looking for:
$(document).ready(function() {
$(".name").text(function(i, text) {
return text.replace("★", " ★");
});
});