Make all data in a column to a hyperlink ()

Make all data in a column to a hyperlink ()

runnerrunner Posts: 1Questions: 0Answers: 0
edited October 2018 in Free community support

Hi!

I'm using the following code to fetch data using PHP from a MySQL database which works just fine:

  $('#my-table').dataTable({
    "bProcessing": true,
    "sAjaxSource": "pro.php",
    "aoColumns": [
    { mData: 'id' } ,
    { mData: 'username' },
    { mData: 'domain' },
    ]
});  

All the data in the domain column are domain name (eg. example.com) and i want them to be rendered inside an anchor tag element <a href="example.com">blah</a>.

Is that possible to do with the Javascript code I use above?
I've tried looking in to the render documentation but don't really get it. Any help would be appreciated.

Thanks!

Replies

This discussion has been closed.