and checkboxes in Datatable

and checkboxes in Datatable

energiezenergiez Posts: 2Questions: 0Answers: 0
edited May 2011 in General
Hi,

First, sorry for my bad english, and thank you for all work done on dataTable !

Using dataTable while few month, i have my first problem.

I've got a . In this form I have a datatable wich contains checkbox.
The problem is that all checkbox that are checked but not visible on the current page are not send when pressing send button ! This seem to be normal, when inspecting the datatable, all elements that are not currently visible (do to pagination) are not in the DOM.

Is there any solution for this ?

Thank you for your help.

Replies

  • energiezenergiez Posts: 2Questions: 0Answers: 0
    For information, i'v found a solution.

    On the form, I put a onsubmit wich get all checked checkbox of the dataTable, and copy them into a invisible div :

    [code]
    $("input:checked",DataTable.fnGetNodes()).each(
    function(index){
    var elem = $(this).clone();
    $(this).remove();
    $('#enquete_temp').append(elem);
    });
    [/code]
This discussion has been closed.