Is it possible to change a css class content with JQuery?
For instance, I have the following page:
html
<div class="foo"> FOO </div>
css
.foo {
color: black;
}
Now I want to change the color in foo class and maybe add another css attributes in the class. Can I do that with JQuery?
So that I would get
css
.foo {
color: red;
display: inline;
}
I understand that it is possible to modify the style of a specific element in any way I want, but I am interested in changing class content here.
Thank you.