Hello! Is there any way to prohibit the movement of the slider in the slider above a certain value? http://jqueryui.com/slider/#range

  • And now in Russian and clearly formulate the question! What where why and how. - Artem
  • For example, there is a slider with one slider with a range from 0 to 10. How to make it so that under one condition I could move it only for example up to 9, under another condition for example up to 5 and so on. Those. in the first case, it is necessary to prohibit movement on 10k and in the second, to make movement only to 5ki and that above 5k he could not move. - x3zone

1 answer 1

$( ".slider" ).slider({ min: 0, max: 10, range: true, slide: function( event, ui ) { if(ui.value > 8) { return false; } } });