Skip to content

Instantly share code, notes, and snippets.

@Sikwan
Created October 26, 2012 12:26
Show Gist options
  • Save Sikwan/3958491 to your computer and use it in GitHub Desktop.
Save Sikwan/3958491 to your computer and use it in GitHub Desktop.
Javascript - JQuery DataTables - Form Serialize
var oTable;
$(document).ready(function() {
$('#form').submit( function() {
var sData = $('input', oTable.fnGetNodes()).serialize();
alert( "The following data would have been submitted to the server: \n\n"+sData );
return false;
} );
oTable = $('#example').dataTable();
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment