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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:38:48+00:00 2026-06-13T09:38:48+00:00

Started looking at the API for the slider , getting a little confused. I

  • 0

Started looking at the API for the slider, getting a little confused. I have a simple form, with one input, feeding into a “results” page that contains a slider. When the user slides the slider handle, the value changes (meaning the final value is computed in a function – input is added to a number)

Right now, I have the value of the slider hard coded, but I’d like the value to be the actual value from the original forms input. Not sure how to get that done, but here’s the function I am working with:

$(function() {
    $("#ds1").slider({
        orientation: "horizontal",
        step: 7,
        range: "min",
        max: 200,
        value: 50,
        slide: refreshTotal,
        change: refreshTotal
    });
});

So the value is hard coded to 50, but I’d like an input field to control that value. The refreshTotal function handles the actual computation. It would be great to also set the max value too if that is handled the same way as this.

I’ve searched on here and found a few examples of “real time” input’s affecting the slider, and visa versa using keyup, etc. But I can’t figure out how to set the value (perhaps using a getter), based on the form input field after the user hits submit, and JQuery handles the computation.

I think this is a pretty simple thing, just can’t seem to figure it out.

  • 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-13T09:38:49+00:00Added an answer on June 13, 2026 at 9:38 am

    This assumes jQuery & jQuery UI.

    $(function () {
        var $slider = $('#slider').slider();
        var $input_a = $('#input_a');
    
        // Set slider value
        $input_a.on('keyup', function () {
            $slider.value($(this).val());
    
        // Default slider
        }).trigger('keyup');
    
        // Set input value
        $slider.change(function () {
            $input_a.val($(this).value());
        };
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am just getting started couchdb and have been looking into writing couch apps.
I started looking at HTML5 new history API However, I have one question. How
I have recently started looking into Google Charts API for possible use within the
I started looking into PhoneGap yesterday and created a simple marble rolling around while
I've started looking into Appcelerator 1.8.0 few days and back and i'm a little
I have recently gained interest in Google Chrome Extensions, so I started looking into
Does anyone have experience integrating the iTunes Search API into Rails? I've started off
I've started looking into a few larger server-app frameworks that would be able to
I recently started looking into building web applications using .NET MVC and I stumbled
I'm getting started with OpenGL ES on Android and I'd looking to learn some

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.