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开发者_JS百科 advance
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/
精彩评论