I’m sure there is some really easy solution to this problem, at least it seems like there should be. But I haven’t been able to find it…
I have an object (it’s not part of the DOM) and its properties are periodically getting updated:
var myobject;
//wait 10 seconds
myobject.property1 = "abc";
I want to trigger an action when this property gets changed (it’s not just 1, but many different properties). How do I go about doing this in JQuery?
You could trigger custom event.