I am trying to set the value of a slider in jQuery mobile 1.4.5, JQ 2.1.4 and do get this error:
Error: no such method 'values' for slider widget instance
HTML Code:
<div data-role="rangeslider" id="filter_price" style="touch-action: none;">
<input type="range" name="price_from" id="price_from" min="0" max="30000" step="250" data-popup-enabled="true">
<input type="range" name="price_to" id="price_to" min="0" max="30000" step="250" data-popup-enabled="true">
</div>
jquery:
$('#filter_price').slider();
$('#filter_price').slider('values', 0, 50);
$('#filter_price').slider('values', 1, 100);
This looks exactly like in the answer provided on SO a few years ago, but might be outdated as it is from 8 years old.