Hey guys..so far we have learned how to add textboxes checkboxes,radiobuttons and buttons in a html form..
Today we will learn about combobox,what combobox is and why do we use it for.
A combobox is a list which displays certain items,from that list you can select only one,a combo box opens a dropdown in which the list is displayed and from that you have to select one,for example a if you want to give an option for your users to select a country then you can use a combo box.
<html>
<body>
<select>
<option value="pakistan">Pakistan</option>
<option value="japan">Japan</option>
<option value="india">India</option>
<option value="china">China</option>
</select>
</body>
</html>
Today we will learn about combobox,what combobox is and why do we use it for.
A combobox is a list which displays certain items,from that list you can select only one,a combo box opens a dropdown in which the list is displayed and from that you have to select one,for example a if you want to give an option for your users to select a country then you can use a combo box.
<html>
<body>
<select>
<option value="pakistan">Pakistan</option>
<option value="japan">Japan</option>
<option value="india">India</option>
<option value="china">China</option>
</select>
</body>
</html>
This is how combo box will look when you will click on the small arrow facing downwards.