Table of Contents

Class HTMLOptGroupElement

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The HTMLOptGroupElement interface provides special properties and methods (beyond the regular HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of {{HTMLElement("optgroup")}} elements.

[Value("HTMLOptGroupElement")]
public class HTMLOptGroupElement : HTMLElement
Inheritance
HTMLOptGroupElement
Inherited Members

Remarks

-The HTML element implementing this interface: optgroup.

See also on MDN

Constructors

HTMLOptGroupElement()

public HTMLOptGroupElement()

Properties

Disabled

The disabled property of the HTMLOptGroupElement interface is a boolean value that reflects the {{htmlelement("optgroup")}} element's disabled attribute, which indicates whether the control is disabled.

[Value("disabled")]
public bool Disabled { get; set; }

Property Value

bool

A boolean value.

Remarks

When disabled, the option element descendants of the <optgroup> element are unusable, un-clickable, and unselectable. These disabled <option>s will match the :disabled selector, even if their disabled property value is false.

-HTML disabled attribute
-CSS :disabled and :enabled pseudoclasses

See also on MDN

Label

The label property of the HTMLOptGroupElement interface is a string value that reflects the {{htmlelement("optgroup")}} element's label attribute, which provides a textual label to the group of options.

[Value("label")]
public string Label { get; set; }

Property Value

string

A string.

Remarks