<select size='3' multiple='multiple' id="test">
<option value='a'>a</option>
<option value='b'>b</option>
<option value='c'>c</option>
</select>
<script type="text/javascript">
var sel = document.getElementById("test");
var len = sel.options.length;
var str = "";
for (var i = 0; i < len; i++) {
if(sel.options[i].selected) {
str += sel.options[i].value;
}
}
alert(str);
</script>