Ver Mensaje Individual
  #8 (permalink)  
Antiguo 13/06/2012, 13:25
Avatar de IsaBelM
IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 15 años, 9 meses
Puntos: 1012
Respuesta: Mostrar combo al desactivar checkbox

si no quieres modificar el css, haz esto
Cita:
function deshabilita(estado)
{
if(estado == true)
{
document.getElementById('zonadev').style.display = 'none';
}
else
{
document.getElementById('zonadev').style.display = 'block';
}
}


window.onload = function() {deshabilita(true);};


<input name="devolucion" type="checkbox" id="devolucion" onclick="deshabilita(this.checked)" checked="checked">
__________________
if(ViolenciaDeGénero) {alert('MUJER ASESINADA');}