Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/05/2010, 16:44
gonza_06
 
Fecha de Ingreso: mayo-2010
Mensajes: 25
Antigüedad: 14 años
Puntos: 1
Respuesta: checkbox color con celda

Código Javascript:
Ver original
  1. $(':checkbox').click(function(){
  2.   if($(this).attr('checked') == true) {
  3.     $(this).parent().attr('style','background:#ff0000;')
  4.   } else {
  5.     $(this).parent().removeAttr('style')
  6.     // o $(this).parent().attr('style','background:#ff0000;') y elejis el color si no esta seleccionado
  7.   }
  8. })

eso esta hecho con jquery espero te sirva

aca la api con todas las funciones
[URL="http://api.jquery.com/"]http://api.jquery.com/[/URL]