Web Hosting Directory | Web Hosting Resources | Webmaster Resources | Domain Tools | Search Engine Marketing | Forums
  Signup
Today: 1,211   Yesterday: 1,015   Max: 1,872   Total: 464,264   Current Users : 23 (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.

 

Attribute for <OPTION ...>
SELECTED

SELECTED indicates that the option should be selected by default. For example, in this example, the third item ("widget analyzer") is the default item:

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

SELECTED can also be used in multiple select lists. In this example, the "green team" and the "purple team" are the default selected items:

this code produces this select list
<SELECT NAME="teams" MULTIPLE SIZE=6>
<OPTION VALUE="b"          >blue team
<OPTION VALUE="g" SELECTED >green team
<OPTION VALUE="r"          >red team
<OPTION VALUE="p" SELECTED >purple team
<OPTION VALUE="f"          >fuschia team
<OPTION VALUE="m"          >mango team
</SELECT>



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.