December 16, 2009

How to create a ListBox in HTML

Q: How to create a ListBox in HTML

here is code to write in .html file to create a list box

<select name="List1" id="Selectmultiple" size="5" multiple="multiple">
<option value="0">All</option>
<option value="1">list item 1</option>
<option value="2">list item 2</option>
<option value="3">list item 3</option>
<option value="4">list item 4</option>
</select>



the output is like this





U can select multiple items with holding CTRL key

Enjoy :->

No comments:

Post a Comment