Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35273

Hyperlink in td

$
0
0

Let's dive right in.
I have a function like this. How do I hyperlink specific columns?
Lets say I want to have the TelephoneNumber render like this <a href="tel:0123456789">0123456789</a>
And where 0123456789 is the value of TelephoneNumber.

var table = $('#users').dataTable( {
            "lengthMenu": [ [5,10, 25, 50, -1], [5,10, 25, 50, "All"] ],
            "ajax": "http://domain.com/Users.txt",
            "columns": [
                { "data": "GivenName" },
                { "data": "SurName" },
                { "data": "Department" },
                { "data": "TelephoneNumber" },
                { "data": "EmailAddress" },
                { "data": "Office" },
            ]
         } ).columnFilter();

Thanks.


Viewing all articles
Browse latest Browse all 35273

Trending Articles