for example suppose that I have this div tag
<div class="x"></div>
so how to add a listener on this div to trigger an event if the class value became "x y" or "y" for example, can I do this using jquery?
what I want is something like to check this element if it has a new update , this update could be happen without triggering any event like(click or mouseover, ...), it could be changed periodically, like to get a new update from the server side, like adding a new class or adding a new content to this div so can I add a listener to check any update could be done over this element