Hey there!
Would you happen to know if there's a wildcard in jQuery that could help me remove a class from an element?
I've been trying to update the classes on my info message box. When a user clicks it once, then clicks it again, it adds a new class but keeps the old one as well.
I really need to get rid of the previous class before adding the new one for styling purposes. Any suggestions would be greatly appreciated!
<div id="infoMsg" style="display: block;" class="er-green er-red">All submitted feeds are complete.</div>
As you can see, the original class was er-green, and then er-red was added.