How do i create combo boxes into a web site? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do i create combo boxes into a web site?

like maybe containing a list of countries into a form the user will select , using html?

11th Sep 2016, 5:20 PM
Arnold Gyan
Arnold Gyan - avatar
7 Answers
+ 3
Alright if you wanna go simple this is how i would do it: <form> <p>Country:</p> <select> <option>Germany</option> <option>Argentina</option> <option>etc</option> </select> <form>
12th Sep 2016, 1:25 AM
jen
jen - avatar
+ 2
This is CSS, I'm not that far yet so unfortunately I cannot answer u this yet.
11th Sep 2016, 10:18 PM
Dirk Heijnen
Dirk Heijnen - avatar
+ 1
<form> <input type="radio" name ="country" value="germany" /> Germany <br /> <input type="radio" name ="country" value="belgium" /> Belgium <br /> <input type="submit" value="Submit" /> <br /> </form> Do this with as many countries as you like edit : use radio if the user will only have 1 choice to submit if you want users to choose multiple answers change radio for checkbox
11th Sep 2016, 10:09 PM
Dirk Heijnen
Dirk Heijnen - avatar
+ 1
thanks a lot but.. Yeahh buh this gives you in a list form how do you create those with drop down menus like yahoo has in its sign up page? they dont do this for the dozens of countries in the world?😱
11th Sep 2016, 10:16 PM
Arnold Gyan
Arnold Gyan - avatar
+ 1
@Akash Kamble. Thanks. 👍 My bad.
12th Sep 2016, 9:46 AM
Arnold Gyan
Arnold Gyan - avatar
0
@Arnold Gyan Yes, they do this. And there are not thousands of countries on this planet, only 196(if you count Taiwan also)!
12th Sep 2016, 4:54 AM
Akash Kamble
Akash Kamble - avatar
0
this might be the simplest one <form> <p> country:</p> <select> <option> india </option> <option> russia</option> <option> usa </option> <option>others!! </option> </select> </form>
14th Sep 2016, 5:46 AM
saubhagya sharma
saubhagya sharma - avatar