HTML DOM OptionGroup Nesnesi
OptionGroup Nesnesi
OptionGroup nesnesi, bir HTML <optgroup> öğesini temsil eder.
Bir OptionGroup Nesnesine Erişin
Bir <optgroup> öğesine getElementById() kullanarak erişebilirsiniz:
Örnek
var x = document.getElementById("myOptgroup");
Bir OptionGroup Nesnesi Oluşturun
Document.createElement() yöntemini kullanarak bir <optgroup> öğesi oluşturabilirsiniz:
Örnek
var x = document.createElement("OPTGROUP");
OptionGroup Nesne Özellikleri
Property | Description |
---|---|
disabled | Sets or returns whether an option-group is disabled, or not |
label | Sets or returns the value the label attribute of an option-group |
Standart Özellikler ve Olaylar
OptionGroup nesnesi ayrıca standart özellikleri ve olayları da destekler .
İlgili Sayfalar
HTML referansı: HTML <optgroup> etiketi