Objeto de conjunto de campos HTML DOM
Objeto de conjunto de campos
El objeto Fieldset representa un elemento HTML <fieldset>.
Acceder a un objeto Fieldset
Puede acceder a un elemento <fieldset> usando getElementById():
Ejemplo
var x = document.getElementById("myFieldset");
Sugerencia: también puede acceder a un objeto Fieldset buscando en la colección de elementos de un formulario.
Crear un objeto de conjunto de campos
Puede crear un elemento <fieldset> utilizando el método document.createElement():
Ejemplo
var x = document.createElement("FIELDSET");
Propiedades del objeto 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 |
Propiedades y eventos estándar
El objeto Fieldset también admite las propiedades y eventos estándar .
páginas relacionadas
Tutorial de HTML: formularios HTML
Referencia HTML: etiqueta HTML <fieldset>