Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82109

how to reference the TD when using mRender

$
0
0
When using mRender as a function callback, how do you reference the TD that the cell will correspond to - for example if I did

"mRender": function(data,type,full) {
    if( full.team_colour == 'green' )
    {
        $(this).parents('td').css('background-color','green');
    }
    return data;
}

but obviously that doesn't work or I wouldnt be posting here :P Just hope it makes it clear what i am trying to do?

Viewing all articles
Browse latest Browse all 82109

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>