how to can use if -else
how to can use if -else
![afshin.efati](https://secure.gravatar.com/avatar/7ec0dd6f2f20b319049661cbd87d7a89/?default=https%3A%2F%2Fvanillicon.com%2F7ec0dd6f2f20b319049661cbd87d7a89_200.png&rating=g&size=120)
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.
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 ?
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