Split Number In Half And Color Change?

Split Number In Half And Color Change?

dobulet302dobulet302 Posts: 38Questions: 0Answers: 0
edited September 2010 in General
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.

Replies

  • dobulet302dobulet302 Posts: 38Questions: 0Answers: 0
    I was able to fix this...


    return "$"+number.slice(0,-3)+""+number.substr(-3);
This discussion has been closed.