Update 2-ui/4-forms-controls/1-form-elements/article.md
Co-authored-by: Muhammed Zakir <8190126+MuhammedZakir@users.noreply.github.com>
This commit is contained in:
parent
ff9e2e2635
commit
dd9833ccec
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ That's a so-called "named collection": it's both named and ordered. We can use b
|
|||
|
||||
```js no-beautify
|
||||
document.forms.my; // the form with name="my"
|
||||
document.forms[0] // the first form in the document
|
||||
document.forms[0]; // the first form in the document
|
||||
```
|
||||
|
||||
When we have a form, then any element is available in the named collection `form.elements`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue