Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Stan on Mar 24, 2008 12:54
open dhtmlx forum
dhtmlxCombo - how to cancel onChange event

Hi,

We use onChange event to validate user input.

If validation failes is it possible to stop execution of onChange event (like return -1) and return combo selection to its original state?

Than you,
Stan.
Answer posted by Support on Mar 25, 2008 03:17
onChange event occurs in moment when data already changed to new one, there is no way to revert previous value
( the only way is to store previous value somewhere, and call setComboValue with previously saved value )