+1 vote
How do I change the style of the label element (let's say red) in pure JS?
I realized that you can only change the style if you specify a class or id, but I need to change the style of all the label elements on the page in general.
How do you do that?

1 Answer

0 votes
Best answer
he only if you specify a class or id

It's not.

You get a list of items. Go through them. For each you change the style.