I'm working with a script which ads a class on click of some element. Is there anyway of removing the dynamically created class with on click event, without knowing/declaring its "name"?
So the Jquery part should say something like "on click: remove the class which has been added right now".
The only thing I can come up with is doing the click event and then removing the last class (which should be the dynamic one) which is answered over here LINK . I'm hoping for a better way though..