jQuery UI Slider: move the value along (with) the handle

前端 未结 6 1412
谎友^
谎友^ 2020-12-25 08:31

I used the jQuery UI slider component in my page to set a range of prices. I can also use their ui.values[] to set and show the new values in other divs.

6条回答
  •  天命终不由人
    2020-12-25 08:58

    change => This event is triggered on slide stop, or if the value is changed programmatically (by the value method). Takes arguments event and ui. Use event.originalEvent to detect whether the value changed by mouse, keyboard, or programmatically. Use ui.value (single-handled sliders) to obtain the value of the current handle, $(this).slider('values', index) to get another handle's value.

    http://docs.jquery.com/UI/Slider#event-change

提交回复
热议问题