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 8303231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:28:33+00:00 2026-06-08T17:28:33+00:00

I have a simple status/progress bar built with HTML/CSS, the percentage is generated depending

  • 0

I have a simple status/progress bar built with HTML/CSS, the percentage is generated depending on the HTML in a span tag. I am then trying to generate a tooltip title depending on the percentage. The issue is the tooltip title is not working. Hopefully the below code can explain it better than me.

HTML

<span class="status">Open</span>
  <div class="prog-container">
    <a href="#" class="form-info" rel="tooltip" title="a">
      <div class="progress rounded clearfix">
        <div class="prog-quart fl">&nbsp;</div>
        <div class="prog-half fl">&nbsp;</div>
        <div class="prog-three-quart fl">&nbsp;</div>
        <div class="prog-perc"></div>
      </div>
    </a>
  </div>

jQuery to generate the percentage based on the status

$('.status:contains("Open")').next().find('.prog-perc').html("25%");
$('.status:contains("Open")').next().find('.prog-quart').addClass('prog-fill');

jQuery to generate the tooltip title based on the percentage generated above

$('.prog-perc:contains("25%")').parent().prev().attr("title", "25 percent tooltip");

Also I’m using HTML5 so before anyone brings it up wrapping divs with anchor tags is valid

  • 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-08T17:28:34+00:00Added an answer on June 8, 2026 at 5:28 pm

    As I understand, you want to change title of anchor

    <a href="#" class="form-info" rel="tooltip" title="a">
    

    If so then you should change

    this line of code

    $('.prog-perc:contains("25%")').parent().prev().attr("title", "25 percent tooltip");
    

    to

    $('.prog-perc:contains("25%")').parents('a').attr("title", "25 percent tooltip");
    

    or you can try

    $('.prog-perc:contains("25%")').closest('a').attr("title", "25 percent tooltip");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have simple dialog-based application with a status bar: InitCommonControls(); HWND hStatus = CreateWindowEx(...);
I have a simple query which is returning records based on the field status
I have written a very simple application to update my twitter status on a
I am new to Android. I have tried an sample application for status bar
I am trying to use the basic progress bar however I am unable to
I have created a website loading progress bar using Jquery UI Progress bar. This
I have a simple table structure where each item row has a status. What
I'm trying to get a progress bar going with delayed job but I don't
I currently have a status bar notification that goes off when an mp3 is
I have to create a progress bar screen to show the progress of download

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.