Split Number In Half And Color Change?
Split Number In Half And Color Change?
dobulet302
Posts: 38Questions: 0Answers: 0
Not sure if this is possible, but I need to take a number and take the last 3 digits and make them a different color. So if I had 35.233900 the numbers 900 would be in gray and the rest would be the default color. Is this possible using datatables? You can't put in other html between my tags as then the number won't format in the table.
This discussion has been closed.
Replies
return "$"+number.slice(0,-3)+""+number.substr(-3);