Check documentation for the latest version 6.0 of dhtmlxSuite onBeforeChange DHTMLX Docs

onBeforeChange

fires before the data in some input changed ( by user actions )

void onBeforeChange(string name,mixed old_val,mixed new_val){ ... };

Parameters

namestringitem name
old_valmixedan existing value
new_valmixeda new value

Example

myForm.attachEvent("onBeforeChange", function (name, old_value, new_value){
    //your code here
return true;
});

Details

returning "false" from the event handler will cancel the value changing (the onChange event won't be called after this)

Back to top