Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by siva on Jan 09, 2008 02:07
open dhtmlx forum
dhtml combo

Hi
How to get Current Combo Box Value
Afer i set the Combo Box Value
Example :
inClassCode.setComboValue(inClassDesc.getSelectedValue());
inClassCode.setComboText(inClassDesc.getSelectedValue());

After that i get "" value for

inClassCode.getSelectedValue()
or

How to reload the inClassCode Combo Box


Plz Advice

Thanks and regards
siva
Answer posted on Jan 09, 2008 03:21
Combo has two different methods

    a) combo.getSelectedValue()
    b) combo.getActualValue();

getSelectedValue - returns value of selected option , if value in combo was typed manually , and has not related option - will return ""
getActualValue - returns current combo value, without relating is it result of selection or just manually entered one