changePseudo
p::before { content: '★'; } p.is-active::before { color: red; }
$('button').on('click', function() { $('p').addClass('is-active'); });