0
How do I call the method slide
?
$("#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);
}
});
The plugin is working perfectly but as you can see I do the data processing before populating them in the fields so not to rewrite the code I would just call the event at the time of popular. for it to format values.
– Silvio Andorinha
Now I understand what you need. There’s a way to call Rigger, but I can’t test now. Check it out and tell me if it worked: $slider = $('#slider-range-min-idle_timeout'); $slider.slider('option', 'slide'). call($slider);
– André Vicente
Made a mistake
Uncaught TypeError: Cannot read property 'value' of undefined
he probably doesn’t get the parameterui
– Silvio Andorinha