update cell value in a specific column

update cell value in a specific column

mehtimehti Posts: 35Questions: 13Answers: 0

Hi guys,

Is ther a better/correct way to achive the following

   $('#results tbody tr td:nth-child(2)').each( function(){
   $(this).html('new value');
});

objective is to update all values in a specific column

Answers

  • mehtimehti Posts: 35Questions: 13Answers: 0

    actually here is how I think...


    table.column(2).nodes().each( function (cell, i) { cell.innerHTML = i+1; } ).draw();
This discussion has been closed.