I am working on a web application which as a table few columns with some data in it. Particularly I have a column named Change binded with some data under it as follows
<td data-bind="text: GradeName"></td>
<td data-bind="text:Price"></td>
<td data-bind="text:Change"></td>
The value of Change can be negative or positive but if its is negative I would like that value to be displayed in red else black.
May I know a good way to do it?