get selected value

If I have the following as my data source for a combo

<?xml version="1.0" encoding="UTF-8" ?> AAA

and use combo.setComboText(“AAA”); to set the text, how can I get the value?

thanks
jc5

This seems to work…

dhtmlXCombo.prototype.setSelectedItemByText=function(text){ for(var i=0;i<this.optionsArr.length;i++){ if(this.optionsArr[i].text==text){ this.setComboValue(this.optionsArr[i].value); break; } } }

You may use setComboValue method instead of setComboText.