Skip to content

Glossary: JavaScript in the Browser

Form elements (form.elements)

Also written: form.elements

The collection of a form's controls, which can be looked up by their `name`, so `form.elements.cafe.value` is the value of the control named `cafe`. Only controls that have a `name` are included when the form's data is gathered with `FormData`.

Where the book teaches it

Related terms

FormData