Ver Mensaje Individual
  #3 (permalink)  
Antiguo 22/10/2010, 08:11
Avatar de _cronos2
_cronos2
Colaborador
 
Fecha de Ingreso: junio-2010
Mensajes: 2.062
Antigüedad: 13 años, 10 meses
Puntos: 310
Respuesta: desabilitar boton en EXTjs

Más sencillo:
Código Javascript:
Ver original
  1. function habilitar(este,chk,btn){
  2.  document.getElementById(btn).disabled=!(este.checked&&document.getElementById(chk).checked);
  3. }
Código HTML:
Ver original
  1. <input type='checkbox' id='c1' onchange="habilitar(this,'c2','btn');" />
  2. <input type='checkbox' id='c2' onchange="habilitar(this,'c1','btn');" />
  3. <input type='button' id='btn' value='Botón' disabled='disabled' />
Saludos (:
__________________
" Getting older’s not been on my plans
but it’s never late, it’s never late enough for me to stay. "
Cigarettes - Russian Red