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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:27:08+00:00 2026-06-01T05:27:08+00:00

This is my jquery progress bar i want to the change the color for

  • 0

This is my jquery progress bar i want to the change the color for the progress bar with class of Acceptedbar to green and class of Declinedbar to Red

  <head runat="server">
    <title>Idea Storm</title>
    <link href="css/CSS.css" rel="stylesheet" type="text/css" />

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js" type="text/javascript"></script>

    <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/jquery-ui.min.js"
        type="text/javascript"></script>

    <script src="script/ui.progressbar.js" type="text/javascript"></script>

    ​<style type="text/css">

.AcceptedBar > .ui-progressbar-value {
   background:green;
}

.DeclinedBar > .ui-progressbar-value {
   background: red;
}
</style>
    <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css">
    <%-- <link href="App_Themes/HRIS-Theme/jquery.ui.core.css" rel="stylesheet" type="text/css" />
    <link href="App_Themes/HRIS-Theme/jquery.ui.theme.css" rel="stylesheet" type="text/css" />--%>
</head>

<script type="text/javascript">

    $(function () 
    {
           $('.Accepted').each(function()
            {            
                var valueFromHiddenField = $('input[type=hidden]', this).val();
             $('.Acceptedbar', this).progressbar({ value: valueFromHiddenField});
      });


    });
    $(function () 
    {
       $('.Declined').each(function() {
        // We assume that there is only 1 hidden field under 'pbcontainer'
        var valueFromHiddenField = $('input[type=hidden]', this).val();
       $('.Declinedbar', this).progressbar({ value: valueFromHiddenField });
        });
    });


</script>
  • 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-01T05:27:10+00:00Added an answer on June 1, 2026 at 5:27 am

    You should use CSS to style your progress bars, details on theming here :

    .AcceptedBar > .ui-progressbar-value {
       background: green;
    }
    
    .DeclinedBar > .ui-progressbar-value {
       background: red;
    }
    

    Working example here

    You cannot use background-color as the themes set a background-image so you must use background

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

Sidebar

Related Questions

Again I have a question regarding this plugin: http://t.wits.sg/2008/06/20/jquery-progress-bar-11/ What I want to achieve
I have a JQuery progress bar I want to theme (documentation here ) dynamically:
i want to use the jquery ui progress bar to show pct of daily
I have created a website loading progress bar using Jquery UI Progress bar. This
I made this simple html snippet: <div class=progress-bar></div> , then I styled it: .progress-bar
I found this nice jQuery preloader/progress bar , but I cannot get it to
This jquery toggles two things. (1) A css class and (2) displaying a div.
i want a progress bar to show percentfilled but i want to make it
I want to display a progress bar that overlays the page, disabling other actions
is there a jquery plugin for progress bar that can count down to a

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.