How to update a specific cell data on click of row
How to update a specific cell data on click of row
LeftPinkie
Posts: 6Questions: 4Answers: 0
How do I update a cell data on click event of a table row?
var myTable = $( '#table' ).DataTable({}) ;
$( '#table tbody' ).on( 'click' , 'tr' , function() {} ) ;
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
"this" in your event handler will be the row dom object so you use that to get the data object.
That will give you the data for the row. How you update that value depends on what your data structure looks like (array of arrays or array of objects).
Thank you... that is exactly what I was looking for.