How to get value from jQuery UI slider?

后端 未结 10 2574
粉色の甜心
粉色の甜心 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条回答
  •  萌比男神i
    2020-12-01 16:15

    Late to the party but this question has still unanswered.

    Below example will show you how to get value on change in an input field to save in DB:

    $( "#slider-videoTransparency" ).slider({            
      value: "1",
      orientation: "horizontal",
      range: "min",
      max: 30,
      animate: true,
      change: function (e, ui) {
    
        var value = $(this).slider( "value" );
        $('.video_overlay_transparency').val(value);
      }  
    });

提交回复
热议问题