dangerChihuahua007
dangerChihuahua007

Reputation: 20895

Why doesn't the range input heed changes in value?

I made a range input element with these min and max values:

<input type='range' min='0' max='9999999' id='mySlider'>

and then tried to change its value to no avail:

// This does not work as intended, at least in Chrome.
// It wrongly moves the slider to the beginning.
slider.value = 5000000;

Moving the slider to the very right side, however, works normally:

slider.value = 9999999;

Why doesn't the first snippet of code for moving the range input work? JsFiddle Demo

Upvotes: 12

Views: 943

Answers (1)

rerich
rerich

Reputation: 277

This is obviously bug. so I reported that. chrome, firefox

It doesn't work in Chrome and in Firefox, but works as expected in IE11 (I still can't believe it)

Upvotes: 1

Related Questions