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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -