I have one textbox,one submit button and one Dropdown list.
when i enter text and click sub button the data should add to dfropdown list dynamically.
How to do this.
I am new to this html and javascript so get me some simple code also.
Thanks in advance.
How To add data into Drop Down List from text box dynamicaly
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Posted Oct 18, 2013, 12:11 AM EDT
try like below code
Ddl_Item.Items.Insert(0, new ListItem(TextBox.Text, string.Empty));