In this example, I can change the range input, the number will be changed in the field.
I want to enter a number and have the range change the same way.
https://snipp.ru/jquery/jquery-ui-slider#
I tried to put the values the other way around, but it doesn’t work.
2
Answers
just track the
input field value change event
Working exampleWhile creating a slider you can pass a value inside the options object.
After creation, you can manipulate the value of the slider like this:
mySlider.slider('value', 42)
note that "mySlider" is a jQuery object, not just the DOM element