Basically I need to check if the value is changed in a textbox on the \'blur\' event so that if the value is not changed, I want to cancel the blur event.
If it possible
Within the onblur
event, you can compare the value
against the defaultValue
to determine whether a change happened:
The defaultValue
will contain the initial value of the object, whereas the value
will contain the current value of the object after a change has been made.
References:
value vs defaultValue