Skip to content

Commit ff9e2e2

Browse files
authored
Merge pull request #1 from knoxj1/knoxj1-patch-1
Add comments to article.md
2 parents 7533c71 + c8a52a1 commit ff9e2e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

2-ui/4-forms-controls/1-form-elements/article.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Document forms are members of the special collection `document.forms`.
1111
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.
1212

1313
```js no-beautify
14-
document.forms.my - the form with name="my"
15-
document.forms[0] - the first form in the document
14+
document.forms.my; // the form with name="my"
15+
document.forms[0] // the first form in the document
1616
```
1717

1818
When we have a form, then any element is available in the named collection `form.elements`.

0 commit comments

Comments
 (0)