Is there a way to insert a div inside a td element within a datatable using the given HTML code?
table = $("#workLocation-table").DataTable({
data: mainArray,
"columnDefs": [
{ className: "details-control" , "targets": [0]},
{
"order": [[1, 'asc']]
},
{
"targets": -1,
"width": "10%",
"data": null,
"defaultContent": '<div class="edit-wrapper"><span class="icn"><i class="fa fa-pencil-square-o" aria-hidden="true" id="edit"></i><i class="fa fa-trash-o" aria-hidden="true" id="delete"></i></span></div>'
}]
});
I am looking to include a div in targets 2 and apply the "over-length" class to that specific div.