The OPTGROUP Element


The <OPTGROUP> Element

The <OPTGROUP> element enables you to divide a <SELECT> control's <OPTION> elements into groups. You can see the properties of the <OPTGROUP> element in Table 13.17.

Table 13.17. The Properties of the <OPTGROUP> Element (See Chapters 5 and 6 for the JavaScript core HTML properties, methods , and events that also apply to this element.)

Property

NS2

NS3

NS4

NS6

IE3a

IE3b

IE4

IE5

IE5.5

IE6

form

     

x

         

x

 

Read-only

 

Contains a reference to the control's form. This is handy if you pass a control to a function and need access to other controls in the same form.

label

     

x

         

x

 

Read/write

 

Sets or gets the caption for the <OPTGROUP> element. Set to a text string. See "Using the <OPTGROUP> Element" in this chapter.



Inside Javascript
Inside JavaScript
ISBN: 0735712859
EAN: 2147483647
Year: 2005
Pages: 492
Authors: Steve Holzner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net