Accessing cell values in a table
Accessing cell values in a table
I have check box as one of the columns in my table which uses DataTable plugin. Here I get the selected rows in a array and trying to access the value of the second column of each of these selected like below.
[code] $('#submit_id').click(function () {
var sData = oTable.$('input').serializeArray();
for(var i=0; i
[code] $('#submit_id').click(function () {
var sData = oTable.$('input').serializeArray();
for(var i=0; i
This discussion has been closed.
Replies
[code]
var nTr = this.parentNode;
var aData = oTable.fnGetData( nTr );
[/code]
Access cell value from aData
[code]
aData[0]; // First cell value
[/code]
[code]
$('#table-id tbody tr:has(:checked)').each( function () {
});
[/code]
it worked.