Convert all select's to dhtmlxCombo and set onchange events.

Hello.
We need to convert all select boxes to dhtmlxCombo and set them onchange events.

$("#roleGroupsTable .editGroupCombos").each(
function(ind, element){
id = $(element).attr(‘id’);
var dhxcomboGroup = dhtmlXComboFromSelect(id);
dhxcomboGroup.attachEvent(“onChange”, onChangeCombo);
}
);

function onChangeCombo(){
//we need get selected value
}

How we can get wich combo was selected from “onChangeCombo” function?

Hello,

this inside event handler refers to a combo object.

dhxcomboGroup.attachEvent(“onChange”, onChangeCombo);

function onChangeCombo(){
var value = this.getActualValue();
}