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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -