Oggetto Fieldset HTML DOM
Oggetto Fieldset
L'oggetto Fieldset rappresenta un elemento HTML <fieldset>.
Accedi a un oggetto Fieldset
Puoi accedere a un elemento <fieldset> usando getElementById():
Esempio
var x = document.getElementById("myFieldset");
Suggerimento: puoi anche accedere a un oggetto Fieldset effettuando una ricerca nella raccolta di elementi di un modulo.
Crea un oggetto Fieldset
È possibile creare un elemento <fieldset> utilizzando il metodo document.createElement():
Esempio
var x = document.createElement("FIELDSET");
Proprietà dell'oggetto Fieldset
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 |
Proprietà ed eventi standard
L'oggetto Fieldset supporta anche le proprietà e gli eventi standard .
Pagine correlate
Esercitazione HTML: moduli HTML
Riferimento HTML: tag HTML <fieldset>