The HTMLFormElement.length
read-only property returns the number of controls in the <form>
element.
Syntax
integer = form.length
Example
if (document.getElementById("form1").length > 1) {
// more than one form control here
}
The HTMLFormElement.length
read-only property returns the number of controls in the <form>
element.
integer = form.length
if (document.getElementById("form1").length > 1) {
// more than one form control here
}