I have a child row in data table row , and I am trying to add a dynamic link to that cloud row's heading, by dynamic link I mean the URL will be depending the value of the cell
For example: let say the URL is http://example.com/delete.php
and the value of d[0]
is 123456789
then I want to append it to the URL making the complete URL something like this http://example.com/delete.php?account=123456789
and link it to the text Delete Account
function format(d){
// `d` is the original data object for the row
return '<table cellpadding="5" cellspacing="0" border="0" style="padding-left:50px;">' +
'<tr>' +
'<td>Active Indicators:</td>' +
'<td>' + d[5] + '</td>' +
'</tr>'+
'<tr>' +
'<td>Delete Account</td>' +
'<td>' + d[0] + '</td>' +
'</tr>'
'</table>';
}
Is it possible to do something like this? if so how does one go about it?