Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Zafrir on Feb 24, 2009 05:21
open dhtmlx forum
getOptionByIndex

I'm trying to get the value of certain combo options by getOptionByIndex(index)
it returns [object][object]...
thanks.
Answer posted by Support on Feb 24, 2009 10:11
Method return Option object , you can take label and value from it as

var option = combo.getOptionByIndex(index)
var label = option.text
var value = option.value