Developing Webs logo
Google
Web DW-Main DW-Photoshop
Visit the message board for solutions or post a question Check out the Classes offered for free at Developing Webs Voice Chat submit a tutorial, resources, article, font for publication consideration and earn a one way link back to your site Get more specifics about the Developing Webs Voice chat room and its room members View the current news at Developing Webs alternative sites which are resources for your d3evelopment needs Join Developing Webs Chat Link to us on your web page to help support this resource! Check out Developing Webs At yahoo groups! Developing Webs Home Adobe Photoshop Tutorials Macromedia Flash Tutorials Jasc Paint Shop Pro Tutorials Adobe Illustrator Animation basics Some Basic PHP tutorials Perl Tutorials HTML Tutorials Cascading Style Sheets javascript Front Page Tutorials Macromedia Dream Weaver Tutorials dreamweaver Publishing your site, FTP, ChMod, Promotions Tools to help you create your site Free and shareware fonts to download Photographs to use in your projects Shop for your site needs Free Online classes REcommend this site to others Log in or edit your information when logged in Developingwebs Log Out Change My Account details and preferences
RSS Newsfeed
for your site
DW News
Calendar
DW Forum
Right click on button and copy shortcut

Add to My Yahoo!

Reminder
Remember to book mark this site!



Request a Tutorial

 

<OPTION> ... </OPTION> SELECTION LIST OPTION

Description:

The OPTION element is only allowed within the SELECT element and indicates an individual choice or element in the Selection List. The end tag is not necessary, as it is implied by either the next occurrence of an OPTION tag or the end SELECT tag.

Attributes:

disabled - This is a stand-alone attribute which indicates the element is initially non-functional.

label - When a SELECT list uses the OPTGROUP elements to create a hierarchy of list values, this attribute indicates a shorter label that should be used in place of the content of the OPTION element.

selected - This is a stand-alone attribute which indicates that this Option is initially selected.

value - Indicates the value to be returned to the form processing script if the Option is chosen. The default VALUE if none is present is the content of the OPTION element.

Example code:

<form>
<select NAME="list1" SIZE=3 MULTIPLE>
<option VALUE="opt1">option1
<option VALUE="opt2">option2
<option SELECTED VALUE="opt3">option3
</select>
</form> 
</optgroup>
</select>

Result:



"Building The Web Into a Nicer Place -- One Site At A Time"
Developing Webs Group Copyright © 2001-2008 All Rights Reserved
Privacy and Legal