Reylin Mathew

Reylin Mathew

  • NA
  • 347
  • 76.1k

how to take distinct values from datatable in jquery

Oct 6 2021 5:53 AM

How to take distinct values from datatable in jquery.

ex: $('#grdTest').DataTable().data()

dt values  :   [1,'test','test','test']
                     [1,'test','demo','demo']
                     [1,'test','demo','demo'] 
                     [2,'demo','demo','demo']
                     [2,'demo','demo','demo']

$('#grdTest').DataTable().data().lenghth() = 5

i need,  = 1,2 ,

how to get??

thnkx in advance..


Answers (2)