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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:41:07+00:00 2026-06-08T22:41:07+00:00

I have a standard <select>..</select> element with which I have a slider created by

  • 0

I have a standard <select>..</select> element with which I have a slider created by selectToUISlider()
The problem is that when the slider moves the option in the dropdown does not change. Additionally it sets selected="selected" on each element as the slider is moved so that when the form is submitted multiple values are POSTed emulating a multiple select option.

I’ve spent ages trying to get to the bottom of this but no luck. Does anyone have any ideas?

  • 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-08T22:41:10+00:00Added an answer on June 8, 2026 at 10:41 pm

    I came across the same problem when trying to achieve similar functionality as mentioned by you.

    The problem is whenever a slider is moved it keeps setting the “selected” attribute of the select list without clearing up previously selected item. I have added a script to clear previously selected option items before setting the new one as selected.

    Look/search for the text at line number 92(..ish) of the jquery script file.

       //control original select menu
       var currSelect = jQuery('#' + thisHandle.attr('id').split('handle_')[1]);
       currSelect.find('option').eq(ui.value).attr('selected', 'selected');
    

    and insert this code between 2 lines…

       currSelect.find('option[selected]').removeAttr('selected');
    

    so final code should look like this…

       //control original select menu
       var currSelect = jQuery('#' + thisHandle.attr('id').split('handle_')[1]);
       currSelect.find('option[selected]').removeAttr('selected');
       currSelect.find('option').eq(ui.value).attr('selected', 'selected');
    

    I hope it helps.
    Feel free to ask any further question.

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

Sidebar

Related Questions

I have a requirement to add a standard drop-down from which you can select
I have a query stored in MS Access which is doing a standard select
I have a select element with 20+ options and size 10. I do not
I have a simple webpage that adds & deletes options from a select element
I have a standard select box which I'm populating using jquery by appending options,
I have a form that I am trying to add a simple select element
We currently have a form with the standard multi-select functionality of here are the
I have standard source code package under Linux which requires to run ./configure make
Is it possible to have standard war deployment, which can be deployed on tomcat
I have a standard list view setup with backbone that looks something like below.

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.