Skip to content Skip to sidebar Skip to footer

Unable To Include Jquery.datatables.min.js In Html

My Code :

Solution 1:

SOLUTION

You need to initialize your table once you are finished manipulating the <table> element and adding rows, i.e. after call to tabulate().

d3.csv('getcsv', function(data) {
   var columns = ['client_ip']
   tabulate(data, columns)

   $('#example').DataTable({
     "pagingType": "full_numbers"
   });
});

I would also put the code into handler for ready event, since you're accessing and manipulating DOM nodes.

DEMO

See updated Plunker for code and demonstration.

Post a Comment for "Unable To Include Jquery.datatables.min.js In Html"