var function = function() { var self = this; $('#input').on('change', function() { var itemName = self.itemName; console.log(self.itemName); // old value }) }
As with every change in input to take actual self, because outside of the function this.ItemName changes.