EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: korenanzo on May 07, 2014, 08:15:04 AM



Title: tooltip text into a specific object
Post by: korenanzo on May 07, 2014, 08:15:04 AM
Hi all,

I'd like to show the tooltip messages into a specific div instead of around the object. is it possible?
I mean, something like this:

Code:
<input type="text" id="t"  title="my tooltip text " class="easyui-tooltip" />
.....
$("#t").tooltip({position: "#toolTipText"});
....
<div id="toolTipText"></div>

(of course I tried this but id does not work ;) )

Thank you,
RIc


Title: Re: tooltip text into a specific object
Post by: stworthy on May 07, 2014, 04:58:45 PM
Call 'tip' method to get the tip message object and you will be able to move it to your DIV container.
Code:
$('#t').tooltip({
onShow:function(){
$(this).tooltip('tip').css({
position:'static'
}).appendTo('#toolTipText');
}
})


Title: Re: tooltip text into a specific object
Post by: korenanzo on May 08, 2014, 12:21:33 AM
thank you :)