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

  • Home
  • SEARCH
  • 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 6373213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:20:11+00:00 2026-05-25T01:20:11+00:00

Simply – I can’t find an answer to this specific question and my jquery/js

  • 0

Simply – I can’t find an answer to this specific question and my jquery/js experience is still to low to figure it out.

I have this in my code:

$(function() {
    $( "#progressbar" ).progressbar({
        value: 0
    });

    $( "#draggable" ).draggable({
        drag: function() {
            var val = $("#progressbar").progressbar("option", "value");
            $("#progressbar").progressbar("option", "value", val+0.4);

        },
    });
});
</script>

<div id="progressbar"></div>
<br/>
<div id="draggable" class="ui-widget ui-widget-content">
    <p>Drag me arround like a mad man.</p>
</div>

When user drags the element arround, the progress bar gets filled. What I’m looking for is an event, when the progress bar gets filled (the value gets to 100). To be specific, I’d like a paragraph to show beneath the progress bar, but that’s optional.

I was looking for a js if/else statement, but I could not figure out, how to set it as a trigger.

Any help (direct, or as a link to resources) will be nicely viewed.

  • 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-05-25T01:20:11+00:00Added an answer on May 25, 2026 at 1:20 am

    You can use the complete event of the progressbar API (see the documentation):

    $( "#progressbar" ).progressbar({
       complete: function(event, ui) { ... }
    });
    

    [EDIT] Your full code would be (with adding a paragraph after the progressbar as you asked):

    $(function() {
        $( "#progressbar" ).progressbar({
            value: 0
            complete: function(event, ui) { 
               $('<p>The progressbar is complete</p>').insertAfter('#progressbar'); 
            }
        });
    
        $( "#draggable" ).draggable({
            drag: function() {
                var val = $("#progressbar").progressbar("option", "value");
                $("#progressbar").progressbar("option", "value", val+0.4);
            },
        });
    });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Simply, How can I replace exact text with HTML using jQuery? The original text
Simply put, how do you find out if the 'the' is present in the
Simply, are there any Java Developer specific Linux distros?
Simply put; what does my $99 get me, that I can't already get for
Simply put how can I make a progress dialog show up every time a
Simply trying to update my sql database via php and jquery ajax. It is
Simply I have a bunch of links like so <div id=categoryLinks> <a href=blah.php?something=this&category=21></a> <a
Simply set the border to red and borderwidth=1px. Using the F12 viewer I can
Simply wondering if any SEO specialists out there know if Google or other search
Simply put, I have a website where you can sign up as a user

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.