How to add value from options to option list?
…
Options:
four 4
five 5
six 6
…
I try to modify dhtmlxcombo.js:
this.content.innerHTML=this.text+""+this.value+"";
but i need selected item without value…
How to add value from options to option list?
…
Options:
four 4
five 5
six 6
…
I try to modify dhtmlxcombo.js:
this.content.innerHTML=this.text+""+this.value+"";
but i need selected item without value…
The possible solution is to set an option label with a value initially:
four 4 five 5 six 6And change a text in a combo header after an option is selected:
combo.attachEvent(“onSelectionChange”,function(){
var text = this.getComboText();
var arr = text.split(" ");
this.setComboText(arr[0]);
})
this work but problem with formating
in this construction it is not shown
<![CDATA[four4]]> <![CDATA[five5]]> <![CDATA[six6]]>May be have a variant to separate the value text in other block?
works for me this variant:
four five sixthis.content.innerHTML=this.text+" “+this.value+”";
combo.attachEvent(“onSelectionChange”,function(){
var text = this.getComboText();
var arr = text.split(" "); // two space, because space in text
this.setComboText(arr[0]);
})