In a CSS file, I have the following code.
.questions label:before {
content: attr(letter);
display: inline-block;
color: gray;
}
Using JavaScript only (jQuery not preferred), I want to make some changes to this CSS element like make the color white instead of gray.
If we were dealing only with a class name like .questions, we could do something like document.getElementsByClassName("questions").style.color = "white";
But I want to select the entire .questions label:before
using JavaScript.