I know maybe couldn't do that Ex:
<div class="dv1">
<span correct="sp1"> D </span>
<span correct="sp2"> C </span>
<span correct="sp3"> Z </span>
</div>
I can define like this :
$(".dv1 span[correct=sp2]").addClass("active");
Other way I want like this :
$(".dv1 span[text=C]").addClass("active");
So maybe there are other ways do the same right ? Thanks !