<select id="test" multiple="multiple">
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select>
<script type="text/javascript">
var selectNode = document.getElementById("test");
alert(selectNode.multiple);
</script>