I rewrote some of my code based on the fact that it is not possible to check if the javascript variable is changing. But how would I do this with the dom element? For example,
<div id='foo'>123</div>
<script>
$('#foo').html('456');
</script>
I tried
$("#foo").change(function () {
alert('change!');
})
.change();
but no luck.
scott
source
share