HTML Codes

HTML Codes > Forms
previous page <TEXTAREA onKeyPress="..."> <SELECT NAME="..."> next page

<SELECT ...>

Usage Recommendation
thumbs up Use it.

  • NAME : name of this form element
  • MULTIPLE : allow more than one choice
  • SIZE : how many options to show
  • READONLY : don't let the user change the value of this field
  • DISABLED : don't let the user do anything with this field

A lot of people come to this page looking for information on drop down menues. You may want to see the Drop Down Menu Tutorial .
<SELECT ...> creates a list of options, one or more of which can be selected. In its simplest use, it consists of <SELECT ...> , two or more <OPTION ...> tags, and </SELECT> .

this code produces this
<SELECT NAME="pizzasize">
<OPTION VALUE="s">small
<OPTION VALUE="m">medium
<OPTION VALUE="l">large
</SELECT>

note that the text which appears is directly after each <OPTION ...> tag, not inside the tag. The value that is sent to the CGI, however, is given by <OPTION VALUE="..."> .

By default only one option can be selected. To have a list which allows more than one option, use the MULTIPLE attribute. See MULTIPLE for more details about this type of list.

previous page <TEXTAREA onKeyPress="..."> <SELECT NAME="..."> next page


Recommended: Link Popularity Software : WebPosition Gold : Google Cash : Arelis : Optilink : Search Engine Optimization Software : Search Engine Submission Software : Mike's Marketing Tools : Mike's Ecommerce Software : Search Engine Rankings : Link Popularity Checker : Cheap Domain Registration : Keywords