142
rated 0 times
[
146]
[
4]
/ answers: 1 / hits: 47756
/ 14 Years ago, wed, june 16, 2010, 12:00:00
how to find whether a value of variable is changed or not in javascript .
More From » javascript
how to find whether a value of variable is changed or not in javascript .
Ehm?
var testVariable = 10;
var oldVar = testVariable;
...
if (oldVar != testVariable)
alert(testVariable has changed!);
And no, there is no magical var.hasChanged() nor var.modifyDate() in Javascript unless you code it yourself.