jQuery Slider How do I lock a handle in place? -


I have a jQuery slider with two handles and I want to lock the first position on the basis of the second handle.

I have tried to check the prices on the slide event and then lock it the setting to handle it back first, but it basically ignores it that I In what form, set and slide continue.

I have received it to work with the stop incident, but it has a lot of things.

I am using a JSON object which is generated from the server side by my sliders. This is my code for stop event:

  $ (clientID) .slider ({range: true, max: slider.max, values: [slider.minVal, slider.maxVal], changes : Switching slip, turn off: onSliderStop}); Functions on Slippers Steps (Event, UI) (for i i sliders.sliders) {var Slider = SliderSlider [i]; Var client id = slider. Type Cty + "_" + slider. ObjectID + "_null"; If (this.id == clientID) {if (ui.values ​​[0] .toString () == slider.max.toString ()) {var value = $ (this) .slider ('option', ' Values'); $ (This). Slider ('option', 'value', [percut (max. X slider), parseint (value [1])); }}}  

Anyone have any ideas?

Let me know that I need to expand.

Thank you! Daniel Brewer

Here's a quick and dirty example of how to handle other handles in relation to the handle, drag it Being:

  var offset = 40; $ ('# Slider'). Slider ({limit: true, max: 600, value: [40, 80], slide: function (e, UI) {if (ui.value == ui.values ​​[0]) {$ (This) Slider ('values', 1, ui.value + offset);} and {$ (this) .slider ('values', 0, ui.value-offset);}}});  

You should help to understand what you want to do.

Work example:


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -