jquery tooltip over dialog
Posted
by alemjerus
on Stack Overflow
See other posts from Stack Overflow
or by alemjerus
Published on 2010-03-16T10:43:10Z
Indexed on
2010/03/16
10:46 UTC
Read the original article
Hit count: 465
I have a simple html multiline tooltip implementation:
this.tooltip = function(tag)
{
xOffset = 10;
yOffset = 20;
$(tag + ".tooltip").hover(function(e){
this.t = this.title;
this.title = "";
$("body").append("<p id='tooltip'>"+ this.t +"</p>");
$("#tooltip")
.css("top",(e.pageY - xOffset) + "px")
.css("left",(e.pageX + yOffset) + "px")
.fadeIn("fast");
},
function(){
this.title = this.t;
$("#tooltip").remove();
});
$(tag + ".tooltip").mousemove(function(e){
$("#tooltip")
.css("top",(e.pageY - xOffset) + "px")
.css("left",(e.pageX + yOffset) + "px");
});
};
It works perfectly on a page, but does not display a thing over jquery.ui.dialog. Is there a way to fix that?
© Stack Overflow or respective owner