Forms as DOM Elements
Learn important points about handing form data via JavaScript.
We'll cover the following
Accessing form fields
A <form>
tag corresponds to a DOM element. This element
has an element’s property that pulls together all the form input fields. You can use this property to access a field via its name
attribute or by its index (order of appearance in the form).
The below example shows some information on the input fields of our example form.
Get hands-on with 1400+ tech skills courses.