Ver Mensaje Individual
  #2 (permalink)  
Antiguo 16/01/2012, 17:34
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: como bloquear checkbox

Viendolo así, en forma aislada, mucho sentido no le encuentro, y puede confundir al usuario, mas vale usar el disabled, pero si te sirve

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <title>titulo</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6. </head>
  7. <p class="boxes">
  8. <input type="checkbox" id="chk_id" name="preferencias[]" value="internet" onclick="return false;" />
  9. <input type="checkbox" id="chk_id2" name="preferencias[]" value="deportes" onclick="return false;" checked="checked" />
  10. </p>
  11. </body>
  12. </html>

onclick="return false;" anulará la acción

Saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.