Created
October 26, 2012 12:26
-
-
Save Sikwan/3958491 to your computer and use it in GitHub Desktop.
Javascript - JQuery DataTables - Form Serialize
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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