how to can use if -else
how to can use if -else
afshin.efati
Posts: 4Questions: 2Answers: 0
hi
i want use if in data table and change id to a text like :
if(id==1)
{
echo "ok";
}
can do some tings like this or not
if can , how can do ?
This discussion has been closed.
Answers
See if this example helps:
https://datatables.net/examples/advanced_init/column_render.html
Within the render function you can use standard Javascript like if statements.
Not sure if I'm answering your question. If not please clarify.
Kevin