how to refresh data table after getting success message in jquery code example Example: reload ajax datatable $('#example').data.reload();