This is a very simple example where we can have single and multiple selection list box without the help of JAVASCRIPT, we are using only HTML, here is the code.

<html>
<head>
<title>Single / Multiple Selects</title>
</head>
<body>
Drop down select with multiple choices<br />
Use SHIFT- or CTRL- for selection picks
<select id="lstBxEmail_1" name="listBoxEmail" multiple="multiple">
<option>Java</option>
<option>PHP</option>
<option>Perl</option>
<option>Javascript</option>
<option>C#</option>
<option>Powershell</option>
</select> 
<p>
Normal select box<br />
Try to make multiple selections here
<select id="lstBxEmail_2" name="listBoxEmail" size="6">
<option>Java</option>
<option>PHP</option>
<option>Perl</option>
<option>Javascript</option>
<option>C#</option>
<option>Powershell</option>
</select> 
</p></body>
</html>

Here we are just using the option MULTIPLE 🙂

One thought on “Single and Multiple selection listbox”

Leave a Reply

Your email address will not be published. Required fields are marked *