163
rated 0 times
[
164]
[
1]
/ answers: 1 / hits: 111058
/ 13 Years ago, fri, february 24, 2012, 12:00:00
I've been working with jQuery for a while, but now I want to write something in pure javascript and it's prooving to be challenging..
One of my biggest problems at the moment is that I haven't found a way to set/change styling for a class. This is not a problem for elements with id, but I want to change the styling for a group of elements with the same class and not just for one element with an id..
In jQuery I would just write:
$('.someClass').css('color','red')
Is there really no simple equivalence to this in pure js?
More From » jquery