| Sample: dhtmlxCombo | Events | dhtmlxCombo main page |

Combo provides four events:
- onChange - event called when combo value changed,
- onKeyPressed - event called when key pressed inside combo: has keyCode as the parameter,
- onSelectionChange - event called when preselected value inside combo change,
- onBlur - event called when focus moved out from combo.
Event handlers can be set using attachEvent method

    combo.attachEvent("onChange",onChangeFunc);

    combo.attachEvent("onKeyPressed",onKeyPressedFunc);

    combo.attachEvent("onSelectionChange",onSelectionChangeFunc);

    combo.attachEvent("onBlur",onBlurFunc);

    function onKeyPressedFunc(key){

        doLog("Key " +key+" was pressed");

    }