How to get value from jQuery UI slider?

后端 未结 10 2577
粉色の甜心
粉色の甜心 2020-12-01 15:22

I am working on http://gamercity.info/ymusic/. And I am using UI slider as seek bar. While the video is played I want to invoke a seekTo(seconds) function if us

10条回答
  •  爱一瞬间的悲伤
    2020-12-01 16:18

    I checked all the answers mentioned above, but found none useful as the following code:

    $('#slider').slider("values")[0]; // for slider with single knob or lower value of range
    $('#slider').slider("values")[1]; // for highest value of range
    

    Tested with jQuery v2.1.1 and jQuery-ui v1.12.1

提交回复
热议问题