How do I do a find/replace on specific elements in a datatable? I'm trying to replace elements in the table with font awesome icons:
JavaScript:
$(document).ready(function() {
$('#example').dataTable();
$('td').html().replace('0', '<i class="fa fa-thumbs-o-up"></i>');
$('td').html().replace('1', '<i class="fa fa-warning"></i>');
} );
JFiddle: http://jsfiddle.net/wo02xedr/