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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:12:28+00:00 2026-05-15T22:12:28+00:00

I wanted to see if I could make a custom data set to use

  • 0

I wanted to see if I could make a custom data set to use with jQuery UI Slider. I’m working on a site that has dress sizes that come in the range of:
[ 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 16W, 18W, 20W ]

The issue I’m having arises right after 18, when it jumps to “wide” sizes that are a bit unique.

Before I added in the 16W, 18W, and on sizes, I created a working slider using the following code:

$("#slider-size .slider").slider({
  min: 0,
  max: 18,
  step: 2,
  slide: function(event, ui) {
    $(".rsize").text(ui.value);
  }
});

The last argument in that function changes a text value when the slider is changed.

Does anyone know how to go about adding in the 16W, 18W, etc to the end of this list?

Thanks!

  • 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-15T22:12:29+00:00Added an answer on May 15, 2026 at 10:12 pm

    for custom sizes, you may use another array for your labels:

    var sizes = ["0","2","4","6","8","10","12","14","16","18","16W","18W","20W"];
    $("#slider-size .slider").slider({
      min: 0,
      max: sizes.length - 1,
      step: 1,
      slide: function(event, ui) {
        $(".rsize").text(sizes[ui.value]);
      }
    });
    

    Now, to add or remove sizes, just modify the sizes array.

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

Sidebar

Related Questions

I just wanted to see if I could have your thoughts on the design
I'm planning to use Ogre3d for 3d rendering to make a game prototype. Wanted
I wanted to see if folks were using decimal for financial applications instead of
I wanted to see what folks thought were the best way to help junior
I just wanted to see if anyone is aware of any other debuggers capable
I have made a program in c and wanted to see, how much memory
I came up with a solution, but I wanted to see if anyone had
What are the most common memory optimizations in csharp, dotnet 2.0. Wanted to see
I wanted to show the users Name Address (see www.ipchicken.com ), but the only
When you run top and see all running processes, I've always wanted to know

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.