let say have element like this
<div class="watch-me" style="display: none;">Watch Me Please</div>
as we can see the element above style is display: none, how can i make script to watch this element. when that element style is change to display: block then there is some code will be trigger.
many thanks…
As far as I know, the only way to do this would be with a timer.
I created a small jQuery plugin (yes, right here, right now) that does this against a jQuery set:
EDIT this plugin is now on GitHub: https://github.com/jacobrelkin/jquery-watcher
Usage:
To clear this property watcher: