I can't figure out how I can change an attribute in a CSS Class. Right now I add a style to that specific div, but what I want is for the attribute in the CSS class to be changed, and not just overridden by the new style attribute.
An example:
.example{background-color:blue}
<div class="example">example</div>
So how can I then change the background-color in the .example CSS and not just by overriding it like this:
<div class="example" style="background-color:blue">example</div>
I have tried a lot of things, but I cant figure it out. I have tried .attr() and .css(), but am I missing something.
.css("background-color", "blue");yes?