Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82512

Sorting on datatable, when <td> have inner <divs>

$
0
0
I'm using Datatables v1.9.4, and I hooked up naturalSort.js to sort my table. All was working fine until I styled the site, and now the table has inner <divs> inside the <td> elements. Now the sort routines are being passed <div>03/04/14 11:17 PM</div> as parameters, rather than the actual text value to be displayed to the user, thus sorting no longer works.

Is there a way to tell Datatables only to try and sort on the text content of the cell, and not the entire markup contained within it?

Viewing all articles
Browse latest Browse all 82512

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>