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
  [Solved] using a custom attribute instead of title jmillspaysbills 1 187 8th April 15:09
Last Post: Craig



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