Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Feb 05, 2009 03:33
open dhtmlx forum
combo box selection

could you please tell me that getting selected value in the combo box

for example the options are
one
two
three

user selected three in the combo box


var z=dhtmlXComboFromSelect("searchPortStatus"); this the combo box creation code i used

i wnat to know the selected value could you please help me in this situation
Answer posted by Support on Feb 05, 2009 07:25
You can use 

var value = z.getSelectedValue();

also, there is a onChange event triggered when value changed

z.attachEvent("onChange",function(){
   //any custom code
});