I am looking for something similar to this.id for the hovered element. When I plug this.id into the return... part the id returned is the id container. Any ideas how to jump that and go to the original hovered element’s id?
$("#results p").hover(function() {
$("#container").prepend(function() {
return "<div id=\"tooltip\"><div id=\"tooltip-inside\">" + e.target.id + "</div></div>";
});
}, function() {
$("#tooltip, #tooltip-inside").remove();
});
You should read id from
targetobject inhovercallback: