i have in my page html :
<div class="token"><span class="token-label" style="max-width: 580px;">impact de l'épidémie (1.00)</span><a href="#" class="close" tabindex="-1">×</a></div>
<div class="token"><span class="token-label" style="max-width: 580px;">new-look (1.00)</span><a href="#" class="close" tabindex="-1">×</a></div>
i want to color text if text= "impact de l'épidémie (1.00)" so, i think that it will b done by add a class name if text ="impact de l'épidémie (1.00)" SO, i want to change the name of class="token-label" to class="token-label pop" if the text is = 'impact de l'épidémie (1.00)'
how we can do this with javascript ?
Aucun commentaire:
Enregistrer un commentaire