jQuery UI Slider - Disable click on slider track

后端 未结 13 1355
南方客
南方客 2020-12-31 08:57

I\'m trying to find a way to disable the click on my jQuery UI Slider\'s track. Clicking on the handle is ok but I do not want the handle to respond if the user clicks on t

13条回答
  •  灰色年华
    2020-12-31 09:05

    Heh, more than 2 years, but, here is my solution:

    $('a.ui-slider-handle').on('click',function(e){
        e.stopImmediatePropagation();
        return false;
    });
    

提交回复
热议问题