Apr 15, 2010, 5:30 PM
Dynamically add Items to the MultiSelect with javascript
I need to be able to dynamically add Items to the MultiSelect with javascript. I believe these items that I add will just need to be added to the store then the MultiSelect refreshed but I'm not sure how to do those steps in javascript with coolite. If it were just a typical listbox I would just have to do the following :
Can you show me how to do this (in javascript as above) with the coolite MultiSelect control please?
Thanx,
var opt = document.createElement("option");
opt.text = description;
opt.value= name;
document.getElementById(getListBox1ClientID()).options.add(opt);
Can you show me how to do this (in javascript as above) with the coolite MultiSelect control please?
Thanx,