Obiekt zestawu pól HTML DOM
Obiekt polowy
Obiekt Fieldset reprezentuje element HTML <fieldset>.
Uzyskaj dostęp do obiektu Fieldset
Możesz uzyskać dostęp do elementu <fieldset> za pomocą getElementById():
Przykład
var x = document.getElementById("myFieldset");
Porada: Możesz również uzyskać dostęp do obiektu Fieldset, przeszukując kolekcję elementów formularza.
Utwórz obiekt zestawu pól
Możesz utworzyć element <fieldset> za pomocą metody document.createElement():
Przykład
var x = document.createElement("FIELDSET");
Właściwości obiektu zestawu pól
Property | Description |
---|---|
disabled | Sets or returns whether a fieldset is disabled, or not |
form | Returns a reference to the form that contains the fieldset |
name | Sets or returns the value of the name attribute of a fieldset |
type | Returns which type of form element the fieldset is |
Standardowe właściwości i zdarzenia
Obiekt Fieldset obsługuje również standardowe właściwości i zdarzenia .
Powiązane strony
Samouczek HTML: formularze HTML
Odniesienie HTML: tag HTML <zestaw pól>