Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by ke on Nov 20, 2009 07:09
open dhtmlx forum
dhtmlxCombo getChecked()

Hello,

How can i get the text selected in dhtmlxCombo with checkbox ?
i find only the function getChecked() which return a liste of value but not text.

Thanks
Best regarde

Ke
Answer posted by Alex (support) on Nov 20, 2009 07:37

Hello,

you can get option text by its value:

var optionText = combo.getOption(value).text;

So, try to use the following:

var values = z.getChecked();

var arr_text = new Array();

for(var i = 0; i < values.length; i++)

    arr_text.push(z.getOption(values[i]).text);



 
 

Answer posted by Ke on Nov 20, 2009 09:39
Ok, thanks very much