Dynamic jQuery Slider step size

I have a slider with the following properties:

  • horizontal direction
  • one descriptor
  • minus 2
  • maximum 65

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

How to create a dynamic step size or how to allow only these points - slider steps?

+5
source share
2 answers

I suggest you watch the event slide. Doc is here . It says:

Return false to prevent ui.value based slide.

, false, , .

: , . , , Events, slide

Edit2: a fiddle, . , .

Edit3: fiddle. , , .

+3
+4

All Articles