Links
Home
Email
<SELECT> and </SELECT>
Description:
The SELECT element indicates the contents will be a list of values. The values of this list are indicated by one or more OPTION elements. This is how a drop-down box is included on the form.
Attributes:
| disabled | |
| Disables input for the field. | |
| multiple | |
| If included allows multiple selections to be set. | |
| name="text" | |
| The value "text" is a name to apply to the selection. This will be passed to the form routine (CGI, ASP, PHP or otherwise) with the form is submitted. | |
| onblur=JavaScript | |
| Javascript routine to be executed if the field losses the focus (is the field receiving input at the current time). | |
| onchange=JavaScript | |
| Javascript routine to be executed if the field changes. | |
| onfocus=JavaScript | |
| Javascript routine to be executed if the field gets the focus (is the field receiving input at the current time). | |
| size=n | |
| Number of lines to include in the selection. | |
| tabindex="n" | |
| Specifies the tabbing sequence of the field. Used to indicate how the tab will move between fields. | |
Examples:
<select name="On" size="1"> <option selected>Web Site</option> <option>Products</option> <option>Suggestion</option> <option>(Other)</option> </select> |
This example shows a simple select statement.
Internet Tips Contents
404 Errors
Advertising
Autoresponse
Awardmaster
Basics
Browsers
Careers
Chatting
Disasters
Domains
Email
Emoticons
Ezines
Free Stuff
Fun Stuff
FTP
Graphics
Homepages
HTML Reference
HTML Tutorial
Interactive
Legal
Links
Msg Boards
Microsoft
Money
Multimedia
Networks
Newsgroups
Newsletter
Products
RFC's
Ringmaster
Searches
Security
Sticky Sites
Surfing
TANSTAAFL
Telnet
Viral
Webmaster
Your System