Form length property
Form Object
Definition and Usage
The length property can return the number of elements in the form.
Syntax
formObject.length
Browser support





All major browsers support the length property.
Example
Example
The following example returns the number of elements in the form:
The example above produces the following output:
3
Try it »
More examples
Get the value of each element in the form
Form Object