Use the
columns.render option[
^], as demonstrated in
this example[
^].
$('#Loan').DataTable({
"destroy": true,
"jQueryUI": true,
"data": dsLoans,
"pagingType": "full_numbers",
"columnDefs": [
{
"targets": 0,
"render": function ( data, type, row ) {
if (type === "display") {
return "<a href=\"someUrl?account=" + encodeURIComponent(data) + "\">" + data + "</a>";
}
return data;
}
}
]
});