Please Log-in or Register to get full access to the forums.


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dynamic title on a qtip
24th December, 14:43
Post: #1
Dynamic title on a qtip
To create a dynamic title, let's say the .text() of the selected element just do the following:

JS Code
$('p span[title]').qtip({
        content: {
            text: $(this).attr('tooltip'),
            title: {
                text: function() {
                    return  $(this).text();
                }
            }
       }
    });
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Target element disappears when using 'title' frexuz 2 217 Today 12:15
Last Post: Craig
  [Solved] create speechbubble with three dynamic content´s networker 22 707 12th January 17:21
Last Post: Craig
  [Solved] How add tip my site from demos "Add a title" tomkralik 2 275 12th December 11:13
Last Post: tomkralik
  [Solved] content.title/content.text with HTML string yyChen 3 619 4th November 11:56
Last Post: Craig
  [Solved] Dynamic loading of content using ajax not working Shweta Arora 1 596 29th October 10:42
Last Post: Craig
  [Solved] Stop displaying empty title Ringworm 4 402 23rd October 10:11
Last Post: Craig
  Title and Button when using iframe nimoke 5 504 16th August 10:11
Last Post: nimoke
  [Solved] Qtip2 width/height for dynamic div content savvyrent 4 721 15th August 20:18
Last Post: savvyrent
  [Solved] Dynamic Background-Image Helgo 1 334 14th August 08:06
Last Post: Craig
  [Solved] Using qTip2 for dynamic Info rspierz 3 415 3rd August 09:37
Last Post: Craig



User(s) browsing this thread: 1 Guest(s)