Change data of cell based on current data
Change data of cell based on current data

Hi,
I have a column that gets filled trough ajax from a database.
One column has the following data: MAL or FEM or NTR
MAL for instance is whats in the DB, but it means Male, how do I show Male in stead of MAL in my column?
P.S. I'm no programmer
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
You would use
columns.render
. Similar to what you are doing in this thread:https://datatables.net/forums/discussion/55863/append-only-if-there-is-data#latest
Kevin
That's a bit to hard for me

I know how to do it in PHP
Here is an example:
http://live.datatables.net/xufiwuzu/1/edit
Sounds like you need to read up on Javascript if/else statements
https://www.w3schools.com/js/js_if_else.asp
Kevin
I will
Tnx m8!