Is it possible to built multiple comboboxes at runtime programatically? I'm doing: var root = document.getElementById('root'); var selectLength = document.getElementsByTagName('select').length; var selectlist = document.createElement('select'); selectlist.id = "select" + selectLength; selectlist.onclick = 'alert();'; var ops = new Array("first", "second", "thrid", "fourth", "fifth"); for (var i = 0; i < ops.length; i++) { var o = document.createElement("option"); var t = document.createTextNode(ops[i]); o.setAttribute("value", ops[i]); o.appendChild(t); selectlist.appendChild(o); } root.appendChild(selectlist);And need the ability to add multiple comboboxes. I may need to create 10 or more boxes based upon the selected value of the prior selected value, Can this be done using the igCombo?Thanks
Hello William,
I am glad this helped. Please let me know if you have any other questions on the issue.
Fantastic-- Thanks
Yes it is possible. I prepared a sample demonstrating how this could be done. The user is prompted to select a number in an igCombo control and if he selects N then number of N new combos will be initialized.
The selectionChanged event of the initial combo is handled where N number of <input> elements are created via Jquery and a new combo is initialized in every new <input> element. Please refer to the sample and let me know if you need any further assistance.