Easy Tutorial
❮ Prop Track Readystate Jsref Regexp Nfollow ❯

HTML DOM OptionGroup Object


OptionGroup Object

The OptionGroup object represents an HTML <optgroup> element.

Accessing OptionGroup Object

You can use getElementById() to access the <optgroup> element:

Creating OptionGroup Object

You can use the document.createElement() method to create an <optgroup> element:

OptionGroup Object Properties

Property Description
disabled Sets or returns whether the option group is disabled.
label Sets or returns the value of the label attribute of the option group.

Standard Properties and Events

The OptionGroup object also supports standard properties and events.


Related Articles

HTML Reference: HTML <optgroup> Tag

❮ Prop Track Readystate Jsref Regexp Nfollow ❯