Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello Everyone,
I have two Dropdown list box.
Dropdown1 is Item like 08:00AM,08:30AM,09:00AM,09:30AM..till 10:00PM with half hour distance.
Dropdown2 has same thing like Dropdown1

now I want to that..when I will run page that time can we add new item like 08:45 AM,09:32 AM dynamically.
just my question is can we add new item into dropdown list box daynamically.

If yes then can give me code for that.

If anybody can help me.
Thank you in advanced.
Posted
Comments
Sinisa Hajnal 11-Jan-16 2:40am    
If that is web select element, use jQuery. If it is winforms, use DropDown.Items.Add.

Without more details it is impossible to help you further. Also, look for the code on the net, it is easy to find. Good luck
dan!sh 11-Jan-16 3:11am    
Why are you using DropDown for this? There plenty of time pickers available on web. Have you had a look at any of them?

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900