I have the need to show the DropDown (HTML select element) expanded initially when it is loaded so that all the options in the DropDown are shown. I searched quite a bit, but suprisingly, I did not find an answer to such a simple problem. I am using ASP.NET MVC with jquery.
I have the need to show the DropDown (HTML select element) expanded initially when
Share
You could write in your HTML code:
and then via javascript set a timer that after while changes the select box size attribute to 1.
For instance at the end of your page (before the clsed body tag) place this code: