How do I format a column in the table for currency?
How do I format a column in the table for currency?
Ok, so I have a problem with a report I am working on using the dataTables jquery plugin. I am building the report with php and javascript, and the data I am using is coming from an associative array. each array in the associative array contains five pieces of info, the last two are numeric and looping through the associative array, nesting a loop through each array within it, I am populating the table. So what I end up with is a table with five columns, the first three of which are text, and the last two are numbers. I want to be able to format just the last two columns for currency. Should I format the data in the array or is there a way to do it with dataTables?