Reputation: 8774
My jQuery UI handle displays the number 14 correctly when loading the page, but if I set it a second time it moves the slider handle all the way to the end. Here's the sample:
Surely I've done something silly, right?
Upvotes: 1
Views: 136
Reputation: 207861
Change:
var v = input.val();
to:
var v = parseInt(input.val(),10);
Your v
variable is a string so you need to convert it to an integer.
Upvotes: 1