How can I reset the value of an individual input field to its default? I have a function which validates the input value when it is entered (onChange), and if the entered value is invalid, I want to reset just this input value to its default. Other input values that has already been validated should not be reset.
Enter any data in the text field other that "1". Then again go back to the text field and enter "1" then tab out of the text field. The original data will be reassigned to the text field.