xxxxxxxxxx
// Execute Datatable's function when modal button is clicked!
// Also Remember to execute the complete process,
// after the document is fully loaded as:
$(document).ready(function(){
$('#modal_button').click(function(){
$('#example').DataTable();
});
});