Removing class from element and disabling CSS statements for class

Removing class from element and disabling CSS statements for class

The problem seems to be simple. Assume we have a definition like

<p class="aaaclass bbbclass">........</p>

Now I want to remove in all elements <p ...> on the web page which have an assigned class "aaaclass"
exactly this class so that afterwards the code look like:

<p class="bbbclass">........</p>

How does that work?

Next question: How do I have to modify your suggested jQuery statement if I want to remove BOTH or ALL classes (see above) so that afterwards the code looks like:

<p>........</p>

And last question:

How can I (independently from the class removal above) remove the corresponding CSS statements

.aaaclass { ,,,,,,, }
.bbbclass { ...... }

Thank you
Peter