and checkboxes in Datatable
and checkboxes in Datatable
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.
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.
This discussion has been closed.
Replies
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]