remove duplicate values....

remove duplicate values....

subbunsubbun Posts: 2Questions: 2Answers: 0

I use datatables javascript to display my data using below function.

I need to modify this to remove duplicate values from the table. Please provide correct code...

$(document).ready(function() { var t = $('#example').DataTable( { "iDisplayLength": 25, "sDom": '<"top"flirp><"bottom"tifp>', "columnDefs": [ { "searchable": false, "orderable": false, "targets": 0 } ], "order": [[ 1, 'asc' ]] } ); t.on( 'order.dt search.dt', function () { t.column(0, {search:'applied', order:'applied'}).nodes().each( function (cell, i) { cell.innerHTML = i+1; } ); } ).draw(); } );

and another javascript also i use...

$(document).ready(function() { $('#example1').DataTable( { "iDisplayLength": 25, "sDom": '<"top"plBirf><"bottom"tifBp>', buttons: [ 'copy', 'csv', 'excel', 'pdf', 'print' ] } ); } ); window.onload = function (event) { window.location.hash = "#tabs"; };
This discussion has been closed.