1
I made the activation all right from jQuery datatable server side. All functional.
However, in the first column I return 1 to active and 0 to inactive. I wanted if it was 1 (active), appears in place of number 1:
<i class='ace-icon fa fa-circle green'></i>
and if it was 0:
<i class='ace-icon fa fa-circle red'></i>
With PHP I did so (without the server side activation):
<td class="center">
<label class="pos-rel">
<?php
if ($status == 0):
echo "<i class='ace-icon fa fa-circle red'></i>";
elseif($status == 1):
echo "<i class='ace-icon fa fa-circle green'></i>";
else: echo "<i class='ace icon fa fa-circle orange'></i>";
endif; ?>
</label>
</td>
But I don’t know how to do in JAVASCRIPT to change according to the return value. Could help me?