Ver Mensaje Individual
  #3 (permalink)  
Antiguo 18/07/2012, 11:40
Avatar de totti026
totti026
 
Fecha de Ingreso: junio-2011
Mensajes: 150
Antigüedad: 13 años, 7 meses
Puntos: 4
Respuesta: converir a 0 valor de un campo mediante un checbox

ya pude des habilitar los dos haciendo clic en el checkbox... así:
Código HTML:
Ver original
  1. <input name="prueba" id="prueba" type="checkbox" onclick="if(this.checked==true)this.disabled=true; this.form.pruebat.disabled=true">
  2.     <input name="pruebat" id="pruebat" type="text" value="100" ></form>

Pero solo falta cambiar a 0 (cero) el valor que tiene el input text por default...