Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

html listbox with Vertical scrollbar

Tags:

html

I want to create listbox in webpage . the listbox whould have a vertical scrollbar; but only one item should be alowed to select;

i can get this kind of listbox with applepineapplemango this gives me exactlyy a listbox with vertical scrollbar, when no of items in list box are too many. but it allows to select multiple items. i want only one item to get selected

Thanks for any help or suggestions in advance

like image 569
Parag Avatar asked Dec 10 '22 08:12

Parag


1 Answers

Here you go:

<select size="5">
    <option value="1">Item #1</option>
    <option value="2">Item #2</option>
    <option value="3">Item #3</option>
    <option value="4">Item #4</option>
    <option value="5">Item #5</option>
    <option value="6">Item #6</option>
    <option value="7">Item #7</option>
</select>

Live example of this: http://jsfiddle.net/B4RNr/

like image 155
Shadow Wizard Hates Omicron Avatar answered Dec 30 '22 16:12

Shadow Wizard Hates Omicron