EasyUI Forum
May 03, 2024, 11:22:12 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Creating Tooltip "on the fly"  (Read 5617 times)
rezzonico
Full Member
***
Posts: 183


View Profile
« on: June 05, 2014, 05:24:26 AM »

Hi all,

I am trying to create a Tooltip "on the fly".

As you can see in the following link (http//:195.144.40.170/AAA/file.html)
"Tooltip 1" works correctly but "Tooltip 2" not.
Note that "Tooltip 2" is created "on the fly".

Here is the code.
Any help is appreciated.
Regards. Miche

Code:
<link id="dlink" rel="stylesheet" type="text/css" href="easyui.css">
<link rel="stylesheet" type="text/css" href="icon.css">
<script type="text/javascript" src="jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="jquery.easyui.min.js"></script>

<script type="text/javascript">
   $(function(){
      $('#tt2').html('<a title="NOT correct" class="easyui-tooltip" href="#">Tooltip 2</a>');
   });
</script>

<div id="tt1">
<a title="correct" class="easyui-tooltip" href="#">Tooltip 1</a>
</div>

<br><br>

<div id="tt2">
</div>
« Last Edit: June 05, 2014, 07:14:46 AM by rezzonico » Logged
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« Reply #1 on: June 08, 2014, 06:56:30 PM »

put the js loader on the end of code
Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
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!