This is a migrated thread and some comments may be shown as answers.

[Solved] How to populate ComboBox using JavaScript?

0 Answers 169 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Pooya
Top achievements
Rank 1
Pooya asked on 26 Jun 2009, 10:20 AM
I have placed a RadComboBox on my page as following:

 

<radCb:RadComboBox ID="RadComboBox2" runat="server" 

SkinsPath="~/RadControls/ComboBox/Skins" Width="150px">   

 

</radCb:RadComboBox>

I have to populate some items (e.g. 2 countries) into this using javascript:
function populateMyRadComboBox(comboBox)
{
...
// what I want is:
// comboBox.Items.Clear();
// comboBox.Items.Add('UK');
// comboBox.Items.Add('US');
}

How can I do this using JavaScript?

Any help?

No answers yet. Maybe you can help?

Tags
ComboBox
Asked by
Pooya
Top achievements
Rank 1
Share this question
or