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

The Archive Base Latest Questions

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

I have a slider with the following properties: an horizontal direction one handle a

  • 0

I have a slider with the following properties:

  • an horizontal direction
  • one handle
  • a min of 2
  • a max of 65

My goal is to force the user to choose between only 7 points (for example: “2, 3, 4, 26, 39, 52, 65”) and nothing more.

How do I create a dynamic step size or how do I allow only those points to be the slider steps?

  • 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-25T02:36:52+00:00Added an answer on May 25, 2026 at 2:36 am

    I suggest that you look at the slide event. Doc is here.
    It says

    Return false in order to prevent a slide, based on ui.value.

    So you’ll just have to return false when the value is not the one you’re aiming.

    Edit: Damn it, the link just got you to the slider page.
    What I’m talking about is in the Events tab, and it’s the one named slide

    Edit2: a fiddle using it. The main difference with the other solution is that the sliding won’t be uniform in this one.

    Edit3: Another fiddle. In this one , if an incorrect value is reached at the end of the slide, it will go back to the previous correct value.

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

Sidebar

Related Questions

I have the following jquery code: $('div#headBannerSearchAgedBetweenSlider').slider({ range: true, min: 18, max: 99, values:
I have two horizontal divisions and i want to insert a slider in between
I have a slider that rotates between different divs nicely with the following code:
I have the following model associations: class Slider < ActiveRecord::Base has_one :featured_happening, :as =>
I have the following JQuery function about a range slider . It's just working
I have the following two slider functions which work well and display like so:
I have custom slider that I use the following touch event to respond to:
I have the following code and I have problem with jQuery UI Slider. What
I have the following piece of jquery. Which basically is a content slider, that
Is this a known issue? I have the following XAML: <Grid x:Name=LayoutRoot> <Popup> <Slider

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.