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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:52:06+00:00 2026-06-11T20:52:06+00:00

I am having problems updating the ui jquery slider when a select is changed

  • 0

I am having problems updating the ui jquery slider when a select is changed or input is changed – anyone have any ideas on the source to resolve this?

$('.application-progress').slider({
    range: "min",
    min: 0,
    max: 100,
    animate: true,
    slide: function(event, ui){
        $("#progress").html(ui.value+"%");
    }
});
$("#progress").html($(".application-progress").slider("value")+"%");

$('input').focusout(function(){
    var percentage = 0;
    $('input').each(function(){
        if($(this).val() != "")
            percentage += 10;
    });
    $("#progress").slider({value: percentage});
    $("#progress").html($(".application-progress").slider("value")+"%");
});​

I have added to jsfiddle: http://jsfiddle.net/Ykx5f/1/.

  • 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-11T20:52:07+00:00Added an answer on June 11, 2026 at 8:52 pm

    Is that you are trying to achieve?

    $("input, select").change(function() {
        var percentage = 0;
        $('input, select').each(function() {
            if ($.trim(this.value) != "") percentage += 10;
        });
        $(".application-progress").slider("value", percentage);
    
        $("#progress").html(percentage + "%");
    });​
    

    DEMO: http://jsfiddle.net/Ykx5f/9/


    And here is the updated version, which automatically calculates the percentage based on the number of input fields:

    $("input, select").change(function() {
        var fields = $("input, select");
        var percentage = 100 * fields.filter(function() {
            return $.trim(this.value) != "";
        }).length / fields.length;
    
        $(".application-progress").slider("value", percentage);
        $("#progress").html(percentage + "%");
    });​
    

    DEMO: http://jsfiddle.net/Ykx5f/11/

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

Sidebar

Related Questions

I've been having problems with Jquery Datetime picker. The slider wouldn't work on touch
I'm having problems saving/updating rows within a table. I have a method myBean.addRule to
I am having some problems with updating a part of my script. I have
I'm having problems updating a record. My document structure is something like this: _id
I'm having problems updating a mysql database. I want to run this script on
I am having problems updating a SPAN in my HTML with the result from
I'm having problems updating records to contain NULL values - in particular, a field
Im having problems getting at the HTML5 video tag with jQuery. Here is my
Im having problems with classpaths. I have used them before with import but I'm
I'm having problems updating a div's content in IE using .update; I also tried

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.