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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:46:36+00:00 2026-06-18T09:46:36+00:00

I’ve been Googling for about an hour or so trying to find a jquery

  • 0

I’ve been Googling for about an hour or so trying to find a jquery control that would come close to what I’m trying to do (or a control that I could tweak), but couldn’t find any.

Perhaps anyone could share a link or might propose a different approach.
I’m trying to achieve the following:

I have a web site that targets dealers (not the general public). Each dealer has a predefined money target. For example, dealer A has a 59K target. Dealer B has a 21K target.
In addition, we currently have 3 rules.

  • If 2% of the customer’s target has been reached, we offer 20%
    discount.
  • If 4% of the customer’s target has been reached, we offer 40%
    discount.
  • If 6% of the customer’s target has been reached, we offer 60%
    discount.

I’m trying to find some sort of progress bar that would show the 3 rules in addition to the current amount the user is at. Example:

——8K—————-|——————|————————|

              20%         40%            60%

The 8K represents the current amount the current logged in dealer has.
Another example (for a different logged in dealer) might be:

———————|——-27K———–|————————|

            20%           40%             60%

How would one create (or tweak) such a control?
Thanks

  • 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-18T09:46:37+00:00Added an answer on June 18, 2026 at 9:46 am

    Try something like this: Live Demo

    HTML

    <div id="main" >
        <div id="first">20%</div><div id="second">40%</div><div id="third">60%</div>
    
        <div id="cur">12000</div>
    </div>
    

    CSS

    #main {
        width:400px;
        height:60px;
        border:1px solid black;
    }
    
    #first,#second,#third {
        display:inline-block;
        position: relative;
        left: 0%;
        top:0%;
        height:100%;
        text-align:right;
        font:Courier;
        color:#fff;
        font-size:90%;
        padding-right:4px;
    }
    
    #first {
        background: #800;
        width:20%;
    }
    
    #second {
        background: #880;
        width:20%;
    }
    
    #third {
        background: #080;
        width:20%;
    }
    
    #cur {
        display:block;
        float:left;
        position: relative;
        left: 0%;
        top:-65%;
        height:30%;
        width:40%;
        border:1px solid blue;
        background: #fff;
        text-align:right;
        font-family: Courier;
        font-weight:bold;
        padding-right: 4px;
    }
    

    jQuery

    $(document).ready(function() {
        function showBar(target, current) {
            perc = current / target * 100;
    
            console.log(perc);
    
            l = perc * 4;
    
            console.log(l);
    
            $("#cur").css('width', perc + '%');
            $("#cur").text(current);
        }
    
        showBar(12000, 6000);
    });
    

    Just call showBar with the target value and current value.

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

Sidebar

Related Questions

I have been googling a lot about this, but I can't find a specific
I've been googling this for about a hour, with little success. Suppose that in
I've been googling for days trying to find a straight answer for why this
I have been googling about this problem and couldn't find any good websites.... I
I've been googling and searching about but have yet to be successful with this.
I have been googling about this issue for hours, and I'm stumped. Im trying
I can find plenty here about quotes in PSQL but nothing that quite fits
Ive been googling mutex tutorials / examples but cant seem to find one for
I've been googling and reading about this and didn't come up with an answer
I have been googling around for about an hour, and I still don't found

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.