I want a slider using HTML5 like this:
where I can display the value. I have tried the below code:
<input type=range min=0 max=100 value=50 step=1 list=tickmarks>
<datalist id=tickmarks>
<option value="0 to 20">0</option>
<option>20</option>
<option>40</option>
<option>60</option>
<option>80</option>
<option>100</option>
</datalist>
But nothing seems to work. Any Idea?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…