Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

<OPTION ...>

Usage Recommendation
use it if you use <SELECT ...>

  • VALUE: what's the value if this option is chosen
 
  • SELECTED: this option is selected by default

<OPTION ...> is used along with <SELECT ...> to create select lists. <OPTION ...> indicates the start of a new option in the list. <OPTION ...> can be used without any attributes, but you usually need the VALUE attribute, which indicates what is sent to the server. The text which follows <OPTION ...> is what is displayed in the browser:

this code produces this select list
<SELECT NAME="partnumber">
<OPTION VALUE="7382">steam turbine
<OPTION VALUE="2928">resistor array
<OPTION VALUE="3993">widget analyzer
<OPTION VALUE="9398">fiber identifier
</SELECT>

Note that the text which appears in the list is never sent to the server.

 
 
  Copyright 1997-2002 Idocs inc. Published under the terms of the Open Content License Design by Interspire