YouTip LogoYouTip

Dom Obj Optgroup

# HTML DOM OptionGroup Object * * * ## OptionGroup Object The OptionGroup object represents an HTML `` element. ### Accessing the OptionGroup Object You can use `getElementById()` to access the `` element: ```javascript var x = document.getElementById("myOptgroup"); (#) ### Creating an OptionGroup Object You can use the `document.createElement()` method to create an `` element: ```javascript var x = document.createElement("OPTGROUP"); (#) ## OptionGroup Object Properties | Property | Description | | --- | --- | | (#) | Sets or returns whether the option group is disabled. | | (#) | Sets or returns the value of the label attribute of the option group. | ## Standard Properties and Events The OptionGroup object also supports standard (#) and (#). * * * ## Related Articles HTML Reference: [HTML `` Tag](#)
← Prop Optgroup DisabledProp Ol Type β†’