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

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -