+ 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?
7 ответов
+ 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>
+ 2
This is CSS, I'm not that far yet so unfortunately I cannot answer u this yet.
+ 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
+ 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?😱
+ 1
@Akash Kamble. Thanks. 👍 My bad.
0
@Arnold Gyan Yes, they do this. And there are not thousands of countries on this planet, only 196(if you count Taiwan also)!
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>