Learning Resources
Select Menu Control
Drop Down Box is used when we have many options available to be selected but only one or two will be selected..
Here is example HTML code for a form with one drop down box
|
The result of this code is the following form
Following is the list of important attributes of
-
name: This is the name for the control.
-
size: This can be used to present a scrolling list box.
-
multiple: If set to "multiple" then allows a user to select multiple items from the menu.
Following is the list of important attributes of
-
value: The value that is sent to the server if this option is selected.
-
selected: Specifies that this option should be the initially selected value when the page loads.
-
label: An alternative way of labeling options.