hi,
I have an xml returned by jsp as shown below.
NEW One
test all
Test all 1
Test all 2
NEW One2
Test all 5
Test all 8
so i want to access both value and id.
i.e, both 749 and New One
i used getSelectedValue() method but its only returning 749.
Thanks in advance.
Hello,
combo doesn’t support additional attributes.
But it’s possible to add attribute directly in the dhtmlxcombo.js. Try to locate here teh following method and add teh necessary attribute:
dhtmlXCombo_defaultOption.prototype.setValue = function(attr){
this.value = attr.value||"";
this.text = attr.text||"";
this.css = attr.css||"";
this.content=null;
this.id = attr.id||"";
}
and this attribute can be got by var id= combo.getOption(value).id method