Web Hosting Directory | Web Hosting Resources | Webmaster Resources | Domain Tools | Search Engine Marketing | Forums
  Signup
Today: 595   Yesterday: 884   Max: 1,872   Total: 420,155   Current Users : 17 (Member 0) 
DOMAIN TOOLS

WEBMASTER TOOLS

RELATED ARTICLES

SUBMIT AN ARTICLE

Write for us and get publicity, link to your website, and best of all get paid. Please visit our writers page for details.


LINK TO US

Link to us and earn points for each visitor you bring to us. Please visit our link partner page for details.

 

<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
 
  • LANGUAGE: scripting language to use
  • onChange: what to do when a new option is selected
  • TABINDEX: tab order
  • onFocus: script to run when this field gets the focus
  • onBlur: script to run when this field loses the focus

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.



Copyright 1997-2002 Idocs, Inc. Written by Miko Sullivan.

 
 
What is your major source of website traffic?
 
 
 
 
 
 

ADVERTISEMENT

 
Cheap Web HostingBudget Web HostingEcommerce Web Hosting
Link to UsLink ExchangeAdvertisePrivacy PolicyTerms Of ServiceAbout UsContact UsSitemap
Copyright © 2006 - 2008 Broadband Media, Inc. All rights reserved.