On Apr 3, 1:37 pm, iceangel89 <iceange...@gmail.com> wrote:
> How can i cancel a change event? i have validated text boxes on
> change. so if its not validated i want to cancel the change. how can i
> do that?

If you validate based on the change event, then the change event has
already occurred - you can't cancel it after it's happened.  If you
want to restore the value of a form control to its default:

  someInput.value = someInput.defaultValue;


but I hate form controls that do that.  Just let the user know there's
an error and let them fix it themselves.


--
Rob

Reply via email to