How to obtain whether checkbox is checked or not when using row select

How to obtain whether checkbox is checked or not when using row select

svu004svu004 Posts: 3Questions: 0Answers: 0
edited March 2014 in TableTools
Hi,

I am very new to both datatables and tabletools. I need to obtain the node data of the row that is currently selected, one of which is a checkbox. Is there a way to obtain whether the checkbox is checked or not for the currently selected node? Any pointers would be really helpful to me, as I have been struggling on this. Following is a snippet of the sample code,

BTW: In reality, I have the checkbox added as part of the JSON string transferred from the server and invoking the datatable on the table, which is created dynamically.




[code]









CheckBox
SuiteName
TestCaseId






TestSuiteName1
10



TestSuiteName2
11



TestSuiteName3
12










var oTable;
$(document).ready(function() {
/* Init the table */
oTable = $('#example').dataTable({
});


oTable.$('tr').click( function () {
var oData = oTable.fnGetData( this );
console.log(oData[0]);

//Parse the oData[0] to check the id of the checkbox
console.log(oData[1]);
console.log(oData[2]);

//console.log(oData);
});



} );







[/code]
This discussion has been closed.