<div class="current"></div>
<a href="#">text</a>
Is there a way to detect when the .live
class is added to this specific <div>
and trigger an action as a result?
For instance, if the class changes, then automatically hide the link associated with it.
I am dealing with a condensed script that modifies the class of the <div>
, but locating where in the codebase these changes are made has proven difficult. As a result, I am exploring methods to capture and respond to any class modifications.