Click sorting table need show recently 1st sorted tr row in console log
Click sorting table need show recently 1st sorted tr row in console log

Click sorting table need show recently 1st sorted tr row in console log
when i click on table tr td the it will order by ascending and descending way so that i want to show first tr . like if click ascending want to show 1st name which ascended in console log . Eg "console.log(john)"
my code
$('#example').DataTable( {
"paging": false,
"searching": false,
"info": false,
data: vendor,
"columns": [
{ "title": "number" },
{ "title": "name" },
{ "title": "money" }
]
} );
This discussion has been closed.
Answers
See this [thread[(https://datatables.net/forums/discussion/61296/highlight-and-delete-first-row-in-datatable#latest) for a similar discussion. You can put the console.log statement inside the
order
event.Kevin