Scenario: User enters a new value into a text field. Upon tabbing out of the field the onChange event is fired which calls a function. Validation within this function checks the entered value. If the value isn't valid an alert is executed and the value is set to 0. If the user now enters the same value as before the onChange event does not fire and so the invalid value can be accepted.
The question is: Why doesn't the onChange event fire, given the fact the value of the field is set to 0 in the function? I have tried setting '.defaultvalue' with no success.
The question is: Why doesn't the onChange event fire, given the fact the value of the field is set to 0 in the function? I have tried setting '.defaultvalue' with no success.