Hi I'm having the below code where I load the datatable on a click of the button
$("#search").click(function () {
// alert("Video inside");
//$("#Video_Details").dataTable().fnDestroy();
console.log(lat);
$("#Video_Details").DataTable({
// // Ajax for api call
ajax: {
// // api endpoint uri
//urlString: "http://localhost:8080/xx/xx/xx/xx/xx",
url: url,
type: "GET",
data: function (json) {
console.log(json);
return json;
},
},
When I click the second time I'm getting cannot reinitialize error. Can someone please clarify?