I am using jQuery Datatable plugin. The initialization code is below
$('#Table').dataTable( { "sAjaxSource": url ... ... });
which is launched by pressing a button. Now when I click this button, I want to get dataTable with a different url. I tried using without success. Please suggest.
if (typeof obj == 'undefined') { obj = $('#Table').dataTable( { "sAjaxSource": url ... ... }) }else { obj.fnClearTable(0); obj.fnDraw(false); }
jquery datatables
Hector barbossa
source share