hi, is it possible to change background-color of my combo in toolbar?
cloneDIV = toolbar.objPull[toolbar.idPrefix+"clone"].obj;
toolbar.objPull[toolbar.idPrefix+"clone"].obj.innerHTML = "";
clone = new dhtmlXCombo(cloneDIV, 'clone', 160); // placeholdert
clone.attachEvent("onSelectionChange", function(){
// only the outer div background-color changes ...
toolbar.objPull[toolbar.idPrefix+"clone"].obj.style.backgroundColor = '#ffe5ad';
growTree(clone.getSelectedValue());
});
this combo will be filled by another combo onChange-event (callback)
…
fillClone = function() {
clone.clearAll();
for(i = 0; i < combo.optionsArr.length; i++){
// not the selected option
if(combo.getActualValue() != combo.getOptionByIndex(i).value){ clone.addOption(combo.getOptionByIndex(i).value, combo.getOptionByIndex(i).text, ‘background-color:#ffe5ad’);
}
}
}
i can only set background-color for options, not for input-field in combo.
if is not possible, may be define background-color by init?
thanks