Oi pessoal.
Tenho este combo:
<html:select property="dsNivel" styleClass="campoTexto" styleId="descNivel" onchange="alteraLabelCor()">
<html:option value=""></html:option>
<html:option value="Nivel 0">Nível 0</html:option>
<html:option value="Nivel 1">Nível 1</html:option>
<html:option value="Nivel 2">Nível 2</html:option>
<html:option value="Nivel 3">Nível 3</html:option>
</html:select>
Embaixo tenho este outro:
<html:select property="idCategoriaPai" styleClass="campoTexto">
<html:option value=""></html:option>
<html:options collection="categorias" property="idCategoria" labelProperty="dsCategoria"/>
</html:select>
Quero que quando o usuário selecionar “Nível 0” ,no primeiro combo,“desapareça” o segundo.
Alguém sabe fazer isto em Java Script?
