<html>
<head>
<title>Q26364285</title>
<script type="text/javascript">
function showSelected() {
var selectBox = document.getElementById("selection");
var selectShow = document.getElementById("selected");
var txt = "";
for (var i = 0; i < selectBox.length; i++) {
if (selectBox.options[i].selected) {
txt += selectBox.options[i].text + "<br/>";
}
}
selectShow.innerHTML = txt;
}
</script>
</head>
<body>
<select id="selection" multiple onchange="showSelected();">
<option value="1">Option 1</option>
<option value="1">Option 2</option>
<option value="1">Option 3</option>
<option value="1">Option 4</option>
<option value="1">Option 5</option>
</select>
<br/>
<div id="selected"></div>
</body>
</html>
|