Hi guys,
i have linkbuttons inside table columns and want to display tooltip even if it is disabled..This worked fine in FF and Chrome but not in IE8 as IE8 disabled elements don't receive any events i tried this workaround
i create a span outside the linkbutton if it is disabled and find the parent of the linkbutton i.e table cell.....then clear the table cells contents,add the span to it and then add the link button to the span and apply the tooltip to the span.
but again IE8 applies the jquery generated code to the table cell as well as the span and so my tooltip generates 2 times making it appear bolder.......i don't want this.this works fine in FF and chrome
i am using the simple tooltip jquery plugin which you can find here
http://dev.mariusilie.net/content/simple-tooltip-jquery-plugin
and here my code
$(document).ready(function (){
var $elems=$(".with-tooltip");
$elems.each(function(){
var state=$(this).attr("disabled");
if(state==true || state=="disabled")
{
var $child=$(this);
var newElem= $(document.createElement('span'));
newElem.attr("title","privacy requested by owner");
var parentElement=$child.parent();
parentElement.empty();
newElem.append($child);
newElem.simpletooltip();
parentElement.append(newElem);
}
});
});
you can view this problem at www.sandesh4u.com/default2.aspx
if you do a view source you will see what is the problem..
please help.i dont know much jquery...