Skip to content

Commit

Permalink
Merge pull request #1 from knoxj1/knoxj1-patch-1
Browse files Browse the repository at this point in the history
Add comments to article.md
  • Loading branch information
knoxj1 authored Feb 4, 2021
2 parents 7533c71 + c8a52a1 commit ff9e2e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 2-ui/4-forms-controls/1-form-elements/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Document forms are members of the special collection `document.forms`.
That's a so-called "named collection": it's both named and ordered. We can use both the name or the number in the document to get the form.

```js no-beautify
document.forms.my - the form with name="my"
document.forms[0] - the first form in the document
document.forms.my; // the form with name="my"
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`.
Expand Down

0 comments on commit ff9e2e2

Please sign in to comment.