Requirements: Slider range sliders, when sliding the initial slider to jump 3 step at a time, slide the back of the slider once only one step
That is, to give two sliders a different SETP value
The way to set up SETP is:
$ ("#English-slider"). Slider ("option", "Step", 2);
The Start method of the slider is to trigger this event when the slider starts to slide.
Start:function (event, UI) { //The slider starts sliding when it is triggered}
In the Start method, Console.log ("UI") can see that the value of the handleindex of the two sliders is 01 1, which is used to distinguish which slider is sliding.
The code is as follows:
Start:function (event, UI) { if (ui.handleindex==0) { $ ("#English-slider"). Slider ("option", "Step", 2); } else{ $ ("#English-slider"). Slider ("option", "Step", 1); } }
Jquery Slider range slider, set a different SETP value for two sliders