Get the old value from an input text using change event