DISABLE attribute for the SELECT tag :
Example :
<html>
<body>
<script type="text/javascript">
<!--
function disable(disableIt)
{
document.Demo.select.disabled = disableIt;
}
//-->
</script>
<form name="Demo">
<select name="select">
<option value="1">Name</option>
<option value="2">Date</option>
</select>
<br />
<input type="checkbox" onclick="disable(this.checked)" /> Disable
</form>
</body>
</html>
No comments:
Post a Comment