I want to use a slider control to input a selection. The possible values are: 5000, 25000, 50000, 75000, and 100000. However, I cannot get the range input to limit to those choices. The closest thing I've got is this:
<datalist id="valid-options">
<option>5000</option>
<option>25000</option>
<option>50000</option>
<option>75000</option>
<option>100000</option>
</datalist>
<input type="range" min="5000" max="100000" step="5000" list="valid-options" ng-model="selectedValue" />
You can see the full sample here: http://jsfiddle.net/au14Lv2t/1/
The problem with this solution is that it allows for invalid values like 10000, 15000, etc.
I'm looking for an AngularJS (or pure HTML5/JS/CSS) solution. I would prefer not to introduce jQuery.
Thanks!