I have setup a slider with jQuery UI, and the correct default value of 60 is displayed. but the slider is still on the very left. It should move to value 60.
https://i.sstatic.net/r2Xfg.jpg
Tried different options found here on StackOverflow but nothing helped.
var gewichtSlider = $("#gewicht-slider").slider({
min: 40,
max: 200,
slide: function(event, ui) {
$("#gewicht").val(ui.value).trigger('change');
$("#gewicht-label").text(ui.value);
$("#gewicht-handle").text(ui.value + ' kg');
}
});
gewichtSlider.slider('option', 'slide').call(gewichtSlider, null, {value: 60});
The slider is not moving.
JSfiddle: https://jsfiddle.net/tz6pea5c/