How to loop on each td using createdRow?
How to loop on each td using createdRow?
            
                            
                                  in General             
        Hello
I want to change the td color base on his value, so i am looping on the rows using createdRow, but it gives me the data for each row, how can i loop on that data(td's)?
i need something like this:
  "createdRow": function( row, data, dataIndex ) {
     if ( data.every().cell() == "TRUE" ) {
      $(cell).addClass( 'green' );
     }else 
{
 $(cell).addClass( 'red' );
}
  }
                This question has an accepted answers - jump to answer
This discussion has been closed.
            
Answers
found it
Or use
$('td', row).addClass(...)increatedRow.Allan
Thanks Allan