Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/12/2015, 06:56
Skyliner
 
Fecha de Ingreso: septiembre-2010
Mensajes: 52
Antigüedad: 13 años, 7 meses
Puntos: 0
Respuesta: Selector css adyacente

Me auto respondo.
La solución es .next() ...

Código Javascript:
Ver original
  1. $("td").each(function(){
  2.     if (parseFloat($(this).text()) <= 0 && !$(this).text().match(":"))  {
  3.                  $(this).css('color','#B901FC');
  4.                  $(this).next().css('color','#B901FC');
  5.                  }
  6.  
  7.  });

Con jQuery es facilísimo hacerlo

Saludos