EasyUI Forum
April 29, 2024, 08:55:08 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: tooltip text into a specific object  (Read 5894 times)
korenanzo
Guest
« 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 Wink )

Thank you,
RIc
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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');
}
})
Logged
korenanzo
Guest
« Reply #2 on: May 08, 2014, 12:21:33 AM »

thank you Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!