Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Asawari on May 15, 2009 06:45
open dhtmlx forum
Length of options in Combobox

How can i get how many options are present in my combo box object? i mean the size?
Answer posted by Alex (support) on May 15, 2009 07:30

There is the optionArr property - a collection of combo options. So, you can use the following approach:

var count = combo.optionsArr.length;