How to access child `td` in `responsive-display` event
How to access child `td` in `responsive-display` event
qooob
Posts: 5Questions: 2Answers: 0
I'm using this to catch the clicked row (more details button):
table.on( 'responsive-display', function ( e, datatable, row, showHide, update ) {
console.log( 'Details for row '+row.index()+' '+(showHide ? 'shown' : 'hidden') );
});
Inside of that function I need to access this row's first td
and do .find('i').removeClass('hidden')
;
How do I do it?
This discussion has been closed.
Answers
Why is that right after I post a question I come up with an answer.
You need yo use
.nodes()
function, like this:datatable.row( row.index() ).nodes()