Can you use jQuery UI Tooltip on a row in datatables

Can you use jQuery UI Tooltip on a row in datatables

samwsamw Posts: 15Questions: 7Answers: 0

I'm trying to use a jQuery UI tooltip on a row in a datatable so when a user hovers the mouse on the row, information will appear in the tooltip. I have 7 columns in my datatable, 5 visible , 2 hidden. When a user hovers the mouse on any row the information from the 2 hidden columns should appear in the tooltip.

I tried this code but it didn't work:

$(document).ready(function () {

$('#EmployeeTable tr').tooltip({
content: function () {
return $(this).find("td").eq(5).html() + ' - ' + $(this).find("td").eq(6).html();
},
track: true
})
});

Answers

  • colincolin Posts: 15,146Questions: 1Answers: 2,586

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.