How to reset jquery UI slider for different elements click using only one slider
when I click on each element I want to reset this slider
How to reset jquery UI slider for different elements click using only one slider
when I click on each element I want to reset this slider
I think you will have to create one function like below and you will have to call on click
slider_reset();
var slider_reset = function(){
var $slider = jQuery("#slider-id");
$slider.slider("option", 'value', 20);
$('#amount').val('20')
$slider.slider("option", 'max', 500);
}