• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

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.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint