Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8837229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:40:17+00:00 2026-06-14T09:40:17+00:00

As per requirement, I want to update an existing tipsy title, but it doesn’t

  • 0

As per requirement, I want to update an existing tipsy title, but it doesn’t seem to work.

Situation

HTML:

<ul>
    <li id="li1">Point at me (title -> value)</li>
    <li id="li2">Point at me (title -> callback)</li>
    <li id="li3" original-title="FooBar1">Point at me (title -> html attribute)</li>
</ul>

<button>Click me to update</button>​

JS:

$('#li1').tipsy({
    title: 'FooBar1'
});
$('#li2').tipsy({
    title: function() { return 'FooBar1'; }
});
$('#li3').tipsy();
$('button').click(function() {
    alert('Updating tipsy titles');

    // Try setting title attribute
    $('li1')[0].setAttribute('title', 'FooBar2');
    $('li2')[0].setAttribute('title', 'FooBar2');
    $('li3')[0].setAttribute('title', 'FooBar2');

    // Try setting original-title attribute
    $('li1')[0].setAttribute('original-title', 'FooBar2');
    $('li2')[0].setAttribute('original-title', 'FooBar2');
    $('li3')[0].setAttribute('original-title', 'FooBar2');
});

You can play with this in a jsFiddle: http://jsfiddle.net/TvFmG/3/

Problems

I’m having the following problems:

  • Setting the title via tipsy({title: 'string'}) doesn’t seem to work at all.
  • The tipsy docs suggest that it’s possible to update the title value by setting the original-title attribute (see section “Dynamically Updating Text”), but that doesn’t seem to work in my case (see jsfiddle).

Are the tipsy docs plain wrong, is it some version incompatibility or is it some other issue that prevents this example from working?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T09:40:19+00:00Added an answer on June 14, 2026 at 9:40 am

    The documentation seems to be correct and working as I understand it.

    .tipsy({title: 'attribute'})
    

    is used to find the attribute on the element and make a tipsy from that. The default is the title attribute. So for the example in the question:

    $('#li1').tipsy({
        title: 'FooBar1'
    });
    

    this is trying to find an attribute called FooBar1 on #li1 which does not exist. The default attribute tipsy will look for is the title attribute. So you need something like:

    <li id="li1" title="hooray!">Point at me (title -> value)</li>
    

    or use a custom attribute and specify that in the tipsy constructor.

    <li id="li1" FooBar1="title from a custom attribute">Point at me (title -> value)</li>
    
    $('#li1').tipsy({
        title: 'FooBar1'
    });
    

    For the setting via a click part of the question, there is an error in the JavaScript on this line (although that same error would also occur on the next lines for the same reason).

    $('li1')[0].setAttribute('title', 'FooBar2');
    

    The selector is missing the leading # so jQuery is not finding your element. It should be $('#li1'), $('#li2') etc…

    However, setting the title in this way will only work if you haven’t already overridden the title in each tipsy constructor. So your code will only work with li3 in this case since the others have a custom title function which always returns FooBar1.

    Full example:

    <li id="li3" original-title="FooBar1">Point at me (title -> html attribute)</li>
    
    $('#li3').tipsy();
    

    will return FooBar1. By then calling $('#li3')[0].setAttribute('title', 'FooBar2'); it will return FooBar2.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As per client requirement i want to send crash Report when App get crash.
As per requirement, I want to allow the user to write to session when
As per the requirement in my app, I want to send an image and
As per my requirement I want to start/stop services over incoming SMS. As per
I'm populating a CheckBoxList from database table. As per requirement, all the values should
I am using SQLite C# library and as per my requirement, before going to
Please see the sample xml given below. As per a requirement, I need to
I have deployed an application on the IIS server, as per my requirement i
I am implementing in app purchase in my application. as per the requirement product
I am trying to create a function as per my requirements. But, when am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.