A frustration I’ve had is that there’s no “native” way for users to input a range of numbers, without using to number inputs. HTML5’s <input type="range">
, I assumed would deal with this but it only allows selection of a single value. I would propose to extend this element using the multiple
attribute already used for <select>
.
<input type="range" multiple>
This would create the range slider, but with two slider “thumbs” to select two values. The input’s value would be an array containing the two selected values, lowest first.
An example use case would be an Ecommerce website, to allow users to filter by price range — without having to jump between multiple inputs.