Is it possible to have an event in JS that fires when the value of a certain variable changes? JQuery is accepted.
If you're using jQuery {UI} (which everyone should be using :-) ), you can use .change() with a hidden element.