I have an element which i know isn’t going to have a class on it at page load, but i know it will at some point. Now what are my options of keeping track of the classes added and removed from the element, by other methods using addClass() and removeClass()? I’m using jQuery but would be happy with a vanilla JavaScript solution.
Share
There is no event of “class added”, you will have to keep an eye on the classes you add to elements.
See this answer