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
  Retaining title attribute for fixed tooltips kiddailey 8 5,495 29th October 07:22
Last Post: sujeet
  How to make qtip respond to dynamic user input via Plottable histogram pdubois 0 298 13th October 09:16
Last Post: pdubois
  Making custom title bar for custom class hbkmadness 0 311 13th July 10:55
Last Post: hbkmadness
  content.title containing link dan.halligan 1 457 21st April 08:11
Last Post: dan.halligan
  Corner color forces title background when title is provided. beauxjames 1 505 27th March 19:25
Last Post: beauxjames
  Mouseover dynamic probs Janus 1 851 12th November 14:56
Last Post: Hetsteve
  Original title tooltip showing teddyvision 0 673 5th November 23:04
Last Post: teddyvision
  How to load qtip content and title from external html file vivekdevaiah 0 1,213 22nd May 10:58
Last Post: vivekdevaiah
  [Bug] Target element disappears when using 'title' frexuz 3 1,374 25th April 13:14
Last Post: frexuz
  [Solved] create speechbubble with three dynamic content´s networker 22 2,199 12th January 17:21
Last Post: Craig



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