dhtmlxCombo - how to cancel onChange event


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,


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 )