Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by rick702 on Mar 05, 2009 01:53
open dhtmlx forum
combo: problem in IE

i'm launching the combo box from deep inside an ajax script function.. therefore it says mycombo is not an object, so i can't use mycombo.getSelectedText(); to retrive the text value of the combo box.. i don't want to submit, just retrive the text value.

problem was solved in FF with <a href="javascript:alert(document.form.mycombo.value);">get value</a> returns the result, but not in IE! How do I resolve this so that it works in both FF and IE?

Thank you in advance! =)
Answer posted by Alex (support) on Mar 05, 2009 03:50

The combo value can be got by the following approach:

var combo = dhtmlXCombo(....);

....

var value = combo.getActualValue();