Ver Mensaje Individual
  #3 (permalink)  
Antiguo 21/03/2013, 13:30
Avatar de HackID1
HackID1
 
Fecha de Ingreso: febrero-2013
Ubicación: En Update
Mensajes: 492
Antigüedad: 11 años, 2 meses
Puntos: 17
Respuesta: pasar un checkbox a checked y luego a no checked con javascript

Hazlo de la siguiente manera.

Código Javascript:
Ver original
  1. <html>
  2. <head>
  3.     <script>
  4.        
  5.         function ajax1(){  
  6.                    document.getElementById("caja14").checked = true;
  7.                    
  8.                    
  9.         }
  10.        
  11.         function ajax2(){  
  12.                    document.getElementById("checkbox").checked = false;
  13.         }
  14.    
  15.     </script>
  16. </head>
  17.  
  18. <body>
  19.     <input id="caja14" type="checkbox" onclick="ajax2();"/>
  20.     <input id="boton1" type="button" onclick="ajax1();" value="boton1"/>
  21. </body>
  22.  
  23. </html>

Saludos! :)
__________________
Puntuar +1 es buena forma de dar las gracias. :P
Your Time is limited, so don't waste it living someone else´s life.
Por: HackID1