1

I have a TableSorter object with 5 columns. The forth one is a checkbox and the fifth one is a total, so numbers.

What I want to do is to change the value of my Total when I click on the checkbox on the same row. So how can I access the value of a specific column of the row I'm clicking on the checkbox ? I'm sure there is a simple way of doing it ! ;-)

Thanks !

FoG

4

1 回答 1

0

我建议使用 updateCell 方法来更新单个表格单元格...我不建议使用“updateAll”,除非您要更改 .

var $cell = $('#myTarget');
$cell.html('some new data');
$('table').trigger('updateCell', [ this, resort, callback ]
于 2017-04-24T06:32:49.600 回答