var oldValue = this.defaultValue; var newValue = this.value; console.log("Old Value " + oldValue); console.log("New value " + newValue);