Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 294
dangerChihuahua007 Avatar asked Mar 02 '15 00:03

dangerChihuahua007


1 Answers

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)

like image 198
rerich Avatar answered Oct 05 '22 07:10

rerich