How can I add an hyperlink to a <td> in a dynamic table?
I need the 1st <td> to be an hyperlink to a url + cell value.
Table dynamic creation :
for (var i = 0; i < riskData.length; i++) {
$("#grdDemo3").append("<tr><td>" + riskData[i].r_id +
"</td><td>" + riskData[i].r_team + "</td></tr>");
}
<script>tags or similar in their team name. Some approaches to do that here: stackoverflow.com/a/7124052/243245, or you could build the entities separately in jQuery and use .text() to set the team name etc.