Disable or enable an option : Option Select ComboBox : Form Control JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Form Control » Option Select ComboBox »

 

Disable or enable an option




<html>
<head>
<script type="text/javascript">
function makeDisable(){
    var x=document.getElementById("aSelectControl")
    x.disabled=true
}
function makeEnable(){
    var x=document.getElementById("aSelectControl")
    x.disabled=false
}
</script>
</head>

<body>
<form>
<select id="aSelectControl">
  <option>Java</option>
  <option>PHP</option>
  <option>Perl</option>
</select>
<input type="button" onclick="makeDisable()" value="Disable list">
<input type="button" onclick="makeEnable()" value="Enable list">
</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