Click here to Skip to main content
15,886,422 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
HTML
<select>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>...</option>
<option>...</option>
<option>...</option>
<option>...</option>
<option>to</option>
<option>30</option>
</select>


How to make a dropdown have vertical scroll bar with total 5 items
Posted

1 solution

HTML
<select size="5"></select>

[Edit]
Check this http://www.metabuilders.com/Tools/ComboBox.aspx[^]
 
Share this answer
 
v2
Comments
Van Hua 25-Aug-11 4:57am    
Thanks for your answer, I want to make a dropdownlist, not a listbox :)
Prerak Patel 25-Aug-11 5:13am    
Oops, edited the answer. Check the link.

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