Funcion cambia:
Código PHP:
<script language="JavaScript">
function cambia(){
switch (document.frm.tipo.selectedIndex){
case 1:
document.frm.mision.disabled = false;
document.frm.red.disabled = true;
document.frm.zona.disabled = true;
document.frm.academia.disabled = true;
case 2:
document.frm.mision.disabled = true;
document.frm.red.disabled = false;
document.frm.zona.disabled = true;
document.frm.academia.disabled = true;
case 3:
document.frm.mision.disabled = true;
document.frm.red.disabled = true;
document.frm.zona.disabled = false;
document.frm.academia.disabled = true;
case 4:
document.frm.mision.disabled = true;
document.frm.red.disabled = true;
document.frm.zona.disabled = true;
document.frm.academia.disabled = false;
}
}
</script>
Código PHP:
<select name="tipo" onChange="cambia()">
<option value="ninguna">Elija una categoría</option>
<option value="misiones">Misiones</option>
<option value="redes">Redes</option>
<option value="zonas">Zonas</option>
<option value="academia">Academia</option>
</select>
Gracias por su respuesta!