Código:
y necesito q se me oculte cuando seleccione Cliente una caja de texto q tengo mas abajo: <html:select property="filtrar" onchange="javascript:cambiar()">
<option id="contrato" >Contrato</option>
<option id="cliente">Cliente</option>
</html:select>
Código:
he exo una funcion q esta mal q m la oculta pero luego cuando vuelvo a selecconar Contrato no m la vuelve a mostrar, este es es script: <tr id="ocultar">
<td><SPAN id="anuncio">Estado</SPAN></td>
<td><html:text property="estado" ></html:text></td>
</tr>
Código:
alguien me puede ayudar por favor?
function cambiar(){
if (document.getElementById("contrato").value){
document.getElementById("ocultar").style.visibility="visible";
}
else{
document.getElementById("ocultar").style.visibility="hidden";
}
}

