I have a slider that ranges from 0 to 80. I want to add a minimum range so that users cannot slider below this. for example, I want to set the value to 20, and users cannot slide below this, but the range of the slider is still from 0 to 80.
Here is my script slider:
$("#showslider").keyup(function (e){ $(".slider").slider("value", $("#showslider").val()); $("#slider-result").html($("#showslider").val()); $( ".slider" ).slider({ animate: true, range: "min", value: 50, min: 0, max: 80, step: 1, slide: function (event, ui) { $("#slider-result").html(ui.value); $("#showslider").val(ui.value); }, change: function(event, ui) { $('#hidden').attr('value', ui.value); } });
If you can guide me in detail.
source share