+ 1

Input type range...

How Can I make something like datalist for input type range or tell me about some attributes of that...

6th Aug 2018, 10:53 AM
Amir_4948
Amir_4948 - avatar
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
6th Aug 2018, 11:29 AM
Calviղ
Calviղ - avatar
+ 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
6th Aug 2018, 11:00 AM
The Ophiuchus
The Ophiuchus - avatar