Ok, if I want read all rows where first checkbox is checked ? Without this function ... ?
[code]
oTable.$('tr').click( function () {
var data = oTable.fnGetData( this );
// ... do something with the array / object of data for the row
} );
[/code]
Great I've found old discussion ! And retrieve all rows (where checked=true) with
[code]
$(\'input:checked\', table.fnGetNodes()).each(function(i){
//appendMyJSON(myJSON, table.fnGetData(i));
r = table.fnGetData(i);
console.log(r);
});
[/code]
how can I clean the values returned by the html tags? thanks
Replies
tnx ;)
[code]
oTable.$('tr').click( function () {
var data = oTable.fnGetData( this );
// ... do something with the array / object of data for the row
} );
[/code]
.... any suggestions? ^^
[code]
$(\'input:checked\', table.fnGetNodes()).each(function(i){
//appendMyJSON(myJSON, table.fnGetData(i));
r = table.fnGetData(i);
console.log(r);
});
[/code]
how can I clean the values returned by the html tags? thanks
[code]
table._('input:checked');
[/code]
will give you an array of the values which are checked.
[code]
table.$('input:checked');
[/code]
Will give you the input elements which are checked.
Allan