我正在尝试根据单击按钮来重置或更改 jQuery 滑块的值,但没有成功。我究竟做错了什么?
<input class="ui-hidden-accessible" type="range" name="slider1" id="slider1" value="50" min="0" max="100" animate="true" />
<br/>
<br>
<input class="ui-hidden-accessible" type="range" name="slider2" id="slider2" value="50" min="0" max="100" animate="true" />
<br/>
<input type="button" data-theme="a" id="go-back" value="Done"></input>
$('#go-back').click(function () {
$("#slider1").val(50).refresh();
}