Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Is there a way to display a dropdownlist default text WITHOUT including it as a select-able option?

Thanks ^_^
Andy
Posted
Comments
CHill60 19-Aug-15 9:21am    
One technique I've seen used is to insert the text e.g. "Select an Option" and then have the dropdownlist validation prevent it from being selected

 
Share this answer
 
Comments
Andy Lanng 19-Aug-15 10:04am    
Perfect! Just what I was after ^_^
Thanks
Most welcome buddy. :)
Thanks7872 19-Aug-15 10:15am    
Good one..+5!
Thanks man :)
I think you are looking for something like this : https://select2.github.io/examples.html[^]

Regards..
 
Share this answer
 
Comments
CHill60 19-Aug-15 9:55am    
Nice. 5'd.
Thanks7872 19-Aug-15 10:00am    
Thank you.
Hey CHill60, you should take a look at my answer as well. :P :D
Andy Lanng 19-Aug-15 10:04am    
Great, but more than I need. Tadit's solution is simpler, but I know I'll come back to Select2. Thanks ^_^
5ed too. Check my solution as well. :P :D

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