Client-side method which gets the number of options from the combobox:
function getOptionsNumber(sComboboxId) {
var oContainer = document.getElementById("ob_" + sComboboxId + "Container");
return oContainer.firstChild.firstChild.firstChild.firstChild.firstChild.firstChild.childNodes.length;
}
|