javascript - Find and replace cells value with Datatables plugin -
i'm looking find , replace specific values known column plugin called datatables.
here code :
table.columns(5).search('valuetochange').cells().every( function () { this.data('newvalue'); });
but not working, tried other solutions didn't find way update cells.
thank help
i have not used search method alternatively work
table.column(5).nodes().each(function (node, index, dt) { if(table.cell(node).data() == valuetochange){ table.cell(node).data('100'); } });
Comments
Post a Comment