JQuery How to bind data binding?
3 answers
In jQuery 1.4.4+, an event is fired for this changeData. If this is the only data you are dealing with an object, your handler is simple, like:
$('#conversations-uCount').bind("changeData", function() {
//data changed, do something, for example:
alert("Data changed!, new value for UnreadIDs: " + $.data(this, 'UnreadIDs'));
});
+4