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.

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 )