In a jquery data table, if table header contains a column with name "URL", give hyperlink for that table column data. I was unable to write the logic for this. Please help..
$(document).ready(function(){
var index = $('th:contains("Mar")').eq(0).index();
$("tr").each(function(rowIndex, row){
$(row).find("th:eq(" + index + ")").css('background', 'green');
$(row).find("td:eq(" + index + ")").html('<a href="index">+index+'</a>');
});
});
I have tried the above code, but I want to have the urls with dynamic data