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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:51:16+00:00 2026-05-25T10:51:16+00:00

I have a created a slide bar to determine the max number of bytes

  • 0

I have a created a slide bar to determine the max number of bytes that a user wants to download. This slider is connected to a select box. As the slider moves along the line, it updates the value in the select box. However, when you chose a value from the select box it does not update the value of the slider. How do i get it to update both ways??

JavaScript

        $(function() {
            var select = $( "#camlogbytes");
            var slider = $( " <div id='slider'></div>").insertAfter(select).slider({
                min: 1,
                max: 6,
                step: 1,
                value: select[0].selectedIndex + 1, 
                slide: function(event, ui) {
                    select[0].selectedIndex = ui.value - 1;
                }
            });
            $("camlogbytes").change(function() {
                slider.slider("value", this.selectedIndex + 1);
            });
        });

HTML

    <tr>
        <td class="column1">Max number of bytes per Camera Log:</td>
        <td id="sliderbytes">
            <select name="camlogbytes" id="camlogbytes">
            <option value="0"selected="selected">0</option>
            <option value="1">1</option>
            <option value="2">2</option>
            <option value="3">3</option>
            <option value="4">4</option>
            <option value="5">5</option>
            </select>
        </td>
    </tr>
  • 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-25T10:51:17+00:00Added an answer on May 25, 2026 at 10:51 am

    You will kick yourself, you missed the # at the start of the selector here:

     $("#camlogbytes").change(function() {
            slider.slider("value", this.selectedIndex + 1);
     });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this bar created that slides open when clicked. However, i only want
I have an alert message bar that slides down when the user clicks a
I have created a custom title bar as shown in this example http://staticallytyped.wordpress.com/2011/03/18/android-dynamic-and-custom-title-bars/ A
Hy, I have a chart,wich is created in runtime,this could be Line, Bar or
I have created a XML image gallery, which displays text in between each slide.
I have created jquery image slider and it is working good. However i have
I have created an application server side that will create a pdf of a
I have a page which contains a jQuery-UI horizontal slider, created using a little
I have created a volume controller for iTunes but I would like this app
I have an image that is 480x270. In theory this should occupy all the

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.