Reputation:
I have below slider in my html5 page:
<input type="range" name="start-weight" id="start-weight" value="100" min="100" max="500" data-mini="true">
I'm trying to change its value dynamically using javascript function as below:
$('#start-weight').val(400).slider('refresh');
The value remains 100 and there is no movement for the slider
Upvotes: 0
Views: 2242
Reputation: 385
This may help you
$(document).ready(function()
{
$('#start-weight').val(400).slider('refresh');
)
Upvotes: 1