Buff, me lo estás poniendo difícil
A ver si hay suerte:
Código Javascript
:
Ver originalvar cboxMails = document.querySelectorAll( 'input[type=checkbox]' );
for( var f = 0; f < cboxMails.length; f++ ){
window.cboxMails[f].onclick = function(){
if( this.checked == false ){
this.parentNode.parentNode.style.backgroundColor = '';
} else {
this.parentNode.parentNode.style.backgroundColor = '#2B3057';
}
}
}
Te olvidaste llamar a la variable globalmente con
window...
Saludos