When a tippy.js
tooltip is triggered, I want to be able to get "this" from it.
I've tried:
tippy(".sampleID",{
arrow:true,
placement: "bottom",
content(reference) {
const title = reference.getAttribute('title');
var tid=$(this).attr("id"); // is undefined
return title;
}
});
How do I get "this" for class .sampleID that was hovered on?