i need to get the value (417762) of this button. I"m trying to do it like this but it doesn't work (see the else clause beneath). I get "undefined" all the time.
$('#migrationssearchtable tbody').on('click',
'td.details-control',
function() {
var tr = $(this).closest('tr');
var row = table.row(tr);
if (row.child.isShown()) {
row.child.hide();
tr.removeClass('shown');
}
else {
var v = tr.find(".details-control"); // this finds the HTML of the TD
var o = v.find(".btn btn-requeue"); // this does not work, gives undefined.
}
}
);

clickontbody?.in last selector should be.btn.btn-requeueclass=" details-control"=>class="details-control"$(document).on('click', 'td.details-control', function() {is better.