$('#TBLfindDict').dataTable({
"iDisplayLength": 100,
"sPaginationType": "full_numbers",
"bLengthChange": false,
"bFilter": false,
"bJQueryUI": true,
"sAjaxSource": /path/,
"sAjaxDataProp": "data",
"fnRowCallback": function(data, iDisplayIndex, iDisplayIndexFull){
var txt = $('#txtHighlight').val();
var txtRegex = new RegExp(txt, "g");
$('#results .termFlag').each(function(){
$(this).html($(this).html().replace(txtRegex, '<span class=\'hightlight\'>' + txt + '</span>'));
});
return data;
},
"aoColumns": [
{ "mDataProp": "name" },
{ "mDataProp": "type" },
{ "mDataProp": "id",
"bSortable": false,
"fnRender": function ( oObj ) {
return /path/;
}
}
],
"oLanguage": {
"sZeroRecords": "No Records",
"sInfo": "_START_-_END_ of _TOTAL_"
}
}); It looks like you're new here. If you want to get involved, click one of these buttons!
Get useful and friendly help straight from the source.