Quantcast
Viewing all articles
Browse latest Browse all 82127

change row colour

Someone knows? ...can I change background colour row with the value depending of var id? I use server processing with jsonp

var sData = oTable.fnGetData( this );
var id = sData[4];

I obtain the value of id but i dont know how change colour?

if id="1"- BG colour Red
else if id="2" - BG colour Green

Thanks

Viewing all articles
Browse latest Browse all 82127

Trending Articles



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