+ 1
Input type range...
How Can I make something like datalist for input type range or tell me about some attributes of that...
2 ответов
+ 2
Datalist enriches input type with predefined values.
eg.
<input type="text" list="lang" />
<datalist id="lang">
<option value="Javascript" label="Front-end web" />
<option value="HTML" label="Front-end web" />
<option value="CSS" />
<option value="PHP" label="Back-end web"/>
<option value="Node.js" label="Back-end web"/>
<option value="C" />
<option value="C++" />
<option value="Java" />
<option value="Python" />
<option value="Swift" />
<option value="Ruby" />
<option value="Kotlin" />
</datalist>
https://code.sololearn.com/WkmPHHoDTeOC/?ref=app
For range type input:
https://code.sololearn.com/WAYkDmSwNslF/?ref=app
+ 1
<input type = " range" min = "0" max = "100" value ="50"/>
min - minimal possible value
max - maximal possible value
value - default value (on page load)
https://www.w3schools.com/tags/att_input_type_range.asp