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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:35:06+00:00 2026-06-12T22:35:06+00:00

I have a webpage where the user uses the slider to select quantity for

  • 0

I have a webpage where the user uses the slider to select quantity for the item he would like to buy.

Depending on quantity selected in the slider, a unqie div with the total price will show. Now i would like to add another div with the same id, in which i will show quantity + a “buy [quantity] now” button.

How can i make 2 divs with the same id show at the same time? I believe that’s not possible – but maybe there is a work around? It doesn’t need to be 2 divs, it can be “2 ” or “1 and 1 ” aswell.

So, to sum up. I would like to display the jquery slider value in several locations on the webpage. How can i do that?

Here is the slider i use:
jsFiddle DEMO

Regards,
Tobias

  • 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-12T22:35:07+00:00Added an answer on June 12, 2026 at 10:35 pm

    You can not use two IDs, in order to achieve your goals you should use class.

    Isted of

    <div id="1" class="colors"...
    

    use

    <div id="1" class="colors v1"...
    

    in this case v1 is your identification

    And if you have two element with the same class with jquery you can use them like $('.v1').show()

    According your code it seems like

     $('#range-start').change(function() {
            $('.colors').hide();
            $('.v' + $(this).val()).show(); //#-> .v
        });
    

    And your divs must has class v1 … v10

    See here jsfiddle

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

Sidebar

Related Questions

I have a webpage that uses a custom plugin, like this: <embed height=0 width=0
So, I have web page that uses javascript to let a user select different
I have a web page that uses three controls to allow a user to
I have a webpage that when landed on, will detect a user's physical location
I have a javascript backed 'print' button on my webpage where the user can
My intention is to have a user initiate a status update from a webpage
I have little question about how web browser retrieve webpage? I know this User
I have an asp.net web page (C# 2008) where the user would enter an
I have a webpage including the following div: <div class='book_box'> <table border=0 cellspacing=0> <tr>
I have a rather small part of my webpage that uses a definition list

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.