I made the jQuery datatable server side all right activation. All functional.
However, in the first column I return 1 for active and 0 for inactive. I wanted it to be 1 (active), appears in the place of the 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 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 do not know how to do in JAVASCRIPT to change according to the value of the return. Could you help me?