If I have css:
.myclass
{
background: #FF00FF;
}
And html:
<div class="myclass">etc.</div>
<div class="myotherclass">etc.</div>
<div class="myclass">etc.</div>
How can I change the background variable of myclass to another color, so that all div's of that class get their background changed?
no jquery please, thanks
Here you go:
Live demo: http://jsfiddle.net/gHXbq/
ES5-shim for IE8
Hope I am close to what you are expecting when I say You may please try something like this:-