I am trying to add an <a> </a> inside of my datatable where I already had o use the ""´s right after return, but how do I pass my sub into my alert call?
function (data, type, full, meta) {
var sub = full[7].substring(0,21)+"...";
return "<a class='astyle' onclick='new function() { alert('"+sub+"') }'>"+sub+"</a>";
}
My example is not working.