Call slider slide method - jQuery Ui

0

How do I call the slide method?

$("#slider-range-min-idle_timeout" ).slider({
      range: "min",
      min: 10,
      max: 60,
      step:10,
      slide: function( event, ui ) {

        $("input:text#idle_timeout").val(ui.value+" minutos");
        $("input:hidden[name=idle_timeout]").val(ui.value*60);
      }
    });
    
asked by anonymous 22.02.2016 / 14:24

1 answer

0

For what it says in the documentation:

  

Triggered at each movement of the mouse during slide. The value given in case as ui.value represents the value that the handle will have as a result of the current movement. Canceling the event will prevent the handle from moving and the handle will continue to have its previous value.

This event is called on each slide move. Try to give a console.log (event, ui) inside the function to see if something is returning or the error.

See Slider documentation

    
22.02.2016 / 15:09