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>