How to define dropdown-list in HTML and to add some element to it? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

How to define dropdown-list in HTML and to add some element to it?

<input list="" value="">

17th May 2019, 3:21 PM
Fatehkhan Haidary
Fatehkhan Haidary - avatar
12 Answers
+ 27
Dropdown-list Starts With (<select>) Opening And Closing Tags And Show Values By (<option>) Opening And Closing Tags. For Example: <select> <option value="car">car</option> </select> Keep Practicing It, Good Luck❗👍✌ 🌹🌷👍🤗💖😊✌🌷🌹
20th Jun 2019, 4:45 PM
K͜͡ɩnɢ・ムzizi 🖤
K͜͡ɩnɢ・ムzizi 🖤 - avatar
+ 5
Do you mean : <select> <option value="dd">xhj</option> </select>
17th May 2019, 5:26 PM
Basel.Al_hajeri?.MBH()
Basel.Al_hajeri?.MBH() - avatar
+ 5
Or other thing?
17th May 2019, 5:26 PM
Basel.Al_hajeri?.MBH()
Basel.Al_hajeri?.MBH() - avatar
+ 5
Or : <input list="mbh" value=""/> <datalist id="mbh"> <option value="hh">d</option <option value="other">s</option> </datalist>
17th May 2019, 5:27 PM
Basel.Al_hajeri?.MBH()
Basel.Al_hajeri?.MBH() - avatar
+ 4
17th May 2019, 5:25 PM
Basel.Al_hajeri?.MBH()
Basel.Al_hajeri?.MBH() - avatar
+ 4
What do you want exactly?
17th May 2019, 5:25 PM
Basel.Al_hajeri?.MBH()
Basel.Al_hajeri?.MBH() - avatar
+ 3
<input list="mbh" value=""/> <datalist id="mbh"> <option value="hh"/> <option value="other"/> </datalist>
17th May 2019, 3:30 PM
Basel.Al_hajeri?.MBH()
Basel.Al_hajeri?.MBH() - avatar
+ 3
Dear Fatehkhan Haidary : Show me what did you make?
17th May 2019, 4:27 PM
Basel.Al_hajeri?.MBH()
Basel.Al_hajeri?.MBH() - avatar
+ 3
Welcome 😄 Did you find what you want 😁😁😉
17th May 2019, 6:15 PM
Basel.Al_hajeri?.MBH()
Basel.Al_hajeri?.MBH() - avatar
+ 2
(‎Basel Al_hajeri)('MBH') Dear, it doesn't show the elements which are written
17th May 2019, 3:43 PM
Fatehkhan Haidary
Fatehkhan Haidary - avatar
+ 2
(‎Basel Al_hajeri)('MBH') <html> <head> <title>Form</title> </head> <body> <form> <b>Registration Form</b><br><br> Name<br> <input type="text" value=""><br /> Father Name<br> <input type="text" value=""><br /> Last Name<br> <input type="text" value=""><br /> Gender<br> Male<input type="checkbox">Female<input type="checkbox"><br /> Age<br> <input type="text" value=""><br /> Date of birth <br> <input type="Date" value=""> <br /> Country <br> <input list="Select" value=""/> <datalist id="Select"> <option value="Afghabistan"/> <option value="America"/> </datalist><br /> Registration Date <br> <input type="Date" value=""><br /> <br /><br /> <input type="Submit" Value="Submit"> <input type="Submit" Value="Decline"> <div class="show">Not Completed!!</div> </form> </body> </html>
17th May 2019, 5:20 PM
Fatehkhan Haidary
Fatehkhan Haidary - avatar
+ 2
17th May 2019, 5:33 PM
Fatehkhan Haidary
Fatehkhan Haidary - avatar