$(document).ready(function() { var table = $('#example').DataTable(); $('button').click(function() { var data = table.$('input, select').serialize(); alert("The following data would have been submitted to the server: " + data.substr(0, 120) + '...'); return false; }); });