<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta title="habilitar, deshabilitar combos según selección en un checkbox">
<script>
function habilitar(value)
{
if(value==true)
{
// habilitamos
document.getElementById("entrada").disabled=false;
}else if(value==false){
// deshabilitamos
document.getElementById("entrada").disabled=true;
}
}
</script>
</head>
<body>
<form>
<h1>habilitar, deshabilitar casilla de texto según selección en un checkbox</h1>
<div>
<input type="checkbox" id="check" onchange="habilitar(this.checked);" checked> Habilitar/Deshabilitar
</div>
<div>
<input type="text" id="entrada">
</div>
</form>
</body>
</html>
pero en vez de utilizar un combo, se utiliza un cuadro de texto.