Select multiple options in a dropdown list (option) : Option Select ComboBox : Form Control JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Form Control » Option Select ComboBox »

 

Select multiple options in a dropdown list (option)




<html>
<head>
<script type="text/javascript">
function formAction(){
    var x=document.getElementById("aSelectControl")
    x.multiple=true
}
</script>
</head>

<body>
<form>
<select id="aSelectControl" size="3">
  <option>Java</option>
  <option>PHP</option>
  <option>Perl</option>
</select>
<input type="button" onclick="formAction()" value="Set to Select multiple">
</form>
</body>

</html>



           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Form Control
» Option Select ComboBox