I have an LI which I'm adding classes to dynamically.
I need to check if the LI has a certain class that was inserted dynamically and insert another class into it.
How is is this possible?
More explanation: After DOM loads the LI looks like this:
<li class="active"></li>
After dynamically inserting a class the LI looks like this:
<li class="active correct"></li>
Now I need to check if the LI contains the class "correct"