I would like to know if a class is removed. something like:
if(".class" is removed) then { get class.object}
I need to know it, because I need the object in wich the class is being removed.
Thanks,
Mark
I would like to know if a class is removed. something like:
if(".class" is removed) then { get class.object}
I need to know it, because I need the object in wich the class is being removed.
Thanks,
Mark
If you can be sure that the removal happens via jQuery, hook the method.
Be aware that you might need to overwrite more methods, like
.toggleClass
.Does .hasClass("someclass") suit your needs? How will it be removed? Or du you want a trigger for when removing the class?
Use
hasClass
: