How to get all selected checkbox from multiple pagination page

How to get all selected checkbox from multiple pagination page

nakatanakata Posts: 7Questions: 0Answers: 0
edited September 2013 in DataTables 1.9
Good day,

Could someone please help me to understand how can i get all the checkbox were checked throughout all the pagination page?

using below seem only show the current page checkbox, not all pages.

Not sure if anything miss out, thanks for enlightenment!

[code]
$('input[name=myCheckbox]:checked');
[/code]


Thanks

Replies

  • allanallan Posts: 63,381Questions: 1Answers: 10,449 Site admin
    Use fnGetNodes: `$('input[name=myCheckbox]:checked', table.fnGetNodes() );` or the `$` API method: http://datatables.net/docs/DataTables/1.9.4/#$

    Allan
  • nakatanakata Posts: 7Questions: 0Answers: 0
    edited September 2013
    Thanks Allan,

    I trying this to get the column value using table.fnGetNodes(), but i hit error...sorry, I'm not familiar much on jQuery and Data Table, but found it getting interesting.

    Could you please share to me how i can get each row specific column's value and appreciated if possible you can share to me where is i can get the reference for selector property; ie : if i deal with TR, what are the property around like rows, cell or etc.

    Thanks again for your help, I might be asking too much, but i'm too new on both of these as giving very short timeline to work this out :(

    I'm trying below and stuck here
    [code]
    var nodes =myTable.fnGetNodes();

    $("nodes").each(function(index){
    alert("Column value:"+this.rows[index].cell[0].text());
    });
    [/code]
This discussion has been closed.