jQuery UI Slider (setting programmatically)

前端 未结 12 1472
借酒劲吻你
借酒劲吻你 2020-12-02 15:04

I\'d like to modify the sliders on-the-fly. I tried to do so by using

$(\"#slider\").slider(\"option\", \"values\", [50,80]);

This call wil

12条回答
  •  一向
    一向 (楼主)
    2020-12-02 15:34

    Finally below works for me

    $("#priceSlider").slider('option',{min: 5, max: 20,value:[6,19]}); $("#priceSlider").slider("refresh");

提交回复
热议问题