Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

178
Views
Jquery Tooltip for a particular column

In a datatable, the tooltip has to be added to the only first column rows while the mouse hovers it,

Rendering | engine |Browser |Platform(s)Engine | version | CSS grade Gecko |Firefox 1.0 |Win 98+ | OSX.2+ | 1.7 | A Gecko |Firefox 1.5 |Win 98+ | OSX.2+ | 1.8 | A

 $('#datatable').DataTable({
  paging: false,
  info: false,
  dom: 'Bfrtip'
});
$('.data-tooltip').each(function() {
    $(this).closest('td').addClass('tooltip');
})
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

<script> $(document).ready(function () { 
$.each(datatable.data, function (i, item){ 
item.tooltip = item.name;
 })
 }); 
table = $('#example').DataTable({
 columns: columns, 
dom: "tp", 
data: datatable.data, 
createdRow: function ( row, data, index ) { 
$("td:first", row).attr("title", data.tooltip); 
} 
});
 var datatable={ "data": [ 
{ "name": "lion", "position": "System Architect" },
{ "name": "tiger", "position": "Accountant" } 
]};
</script>

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!