How to get value from jQuery UI slider?

后端 未结 10 2588
粉色の甜心
粉色の甜心 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:24

      // Price Slider
            if ($('.price-slider').length > 0) {
                $('.price-slider').slider({
                    min: 0,
                    max: 2000,
                    step: 10,
                    value: [0, 2000],
                    handle: "square",
    
    
                });
            }
    
    
    
    $(document).ready(function(){
    
     $(".price-slider").on( "slide", function( event, ui ) {  console.log("LA RECTM");  var mm = $('.tooltip-inner').text(); console.log(mm);   var divide = mm.split(':');   console.log( "min:" +divide[0] + " max:" + divide[1] )     } );
    
    
    
    
    })
    

提交回复
热议问题