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');   } }); 

here demo http://jsfiddle.net/dhirajbodicherla/189lp6u6/12/


Comments

Popular posts from this blog

symfony - TEST environment only: The database schema is not in sync with the current mapping file -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -