DataTables with form elements example with Server Side Processing
DataTables with form elements example with Server Side Processing
Does anyone have an example of DataTables with form elements example with Server Side Processing.
I've tried adding the following code from the example but it only submits form elements from the page I'm on.
E.g. if I select 4 rows from page 1 and 4 rows from page 2 then only the 4 rows from the page I'm currently on will be submitted.
Any ideas?
[code]
$('#form').submit( function()
{
// var sData = oTable.$('input').serialize();
var sData = $('input', oTable.fnGetNodes()).serialize();
alert( "The following data would have been submitted to the server: \n\n"+sData );
return false;
}); [/code]
I've tried adding the following code from the example but it only submits form elements from the page I'm on.
E.g. if I select 4 rows from page 1 and 4 rows from page 2 then only the 4 rows from the page I'm currently on will be submitted.
Any ideas?
[code]
$('#form').submit( function()
{
// var sData = oTable.$('input').serialize();
var sData = $('input', oTable.fnGetNodes()).serialize();
alert( "The following data would have been submitted to the server: \n\n"+sData );
return false;
}); [/code]
This discussion has been closed.