This commit is contained in:
Ilya Kantor 2019-08-19 11:41:22 +03:00
parent 077fd8498f
commit 42603c01ba
11 changed files with 13 additions and 11 deletions

View file

@ -51,11 +51,13 @@ let form = document.forms[0];
let ageElems = form.elements.age;
alert(ageElems[0].value); // 10, the first input value
*!*
alert(ageElems[0].value); // 10, the value of the first input name="age"
*/!*
</script>
```
These navigation properties do not depend on the tag structure. All elements, no matter how deep they are in the form, are available in `form.elements`.
These navigation properties do not depend on the tag structure. All control elements, no matter how deep they are in the form, are available in `form.elements`.
````smart header="Fieldsets as \"subforms\""