Ver Mensaje Individual
  #10 (permalink)  
Antiguo 03/11/2013, 10:34
PHPeros
Colaborador
 
Fecha de Ingreso: septiembre-2013
Ubicación: España
Mensajes: 3.648
Antigüedad: 11 años, 5 meses
Puntos: 578
Respuesta: Problema con checkbox IE10

Buff, me lo estás poniendo difícil

A ver si hay suerte:

Código Javascript:
Ver original
  1. var cboxMails = document.querySelectorAll( 'input[type=checkbox]' );
  2. for( var f = 0; f < cboxMails.length; f++ ){
  3.     window.cboxMails[f].onclick = function(){
  4.         if( this.checked == false ){
  5.             this.parentNode.parentNode.style.backgroundColor = '';
  6.         } else {
  7.             this.parentNode.parentNode.style.backgroundColor = '#2B3057';
  8.         }
  9.     }
  10. }

Te olvidaste llamar a la variable globalmente con window...

Saludos