user3706255
user3706255

Reputation:

Jquery not able to set value for slider dynamically

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

Answers (1)

user3519216
user3519216

Reputation: 385

This may help you

 $(document).ready(function()
    {
    $('#start-weight').val(400).slider('refresh');
    )

Upvotes: 1

Related Questions