Update article.md

This commit is contained in:
Zearin 2021-01-25 11:03:51 -05:00 committed by GitHub
parent d78ce9ca32
commit 4711ee4e85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -289,9 +289,9 @@ Form navigation:
`element.form`
: Elements reference their form in the `form` property.
Value is available as `input.value`, `textarea.value`, `select.value`, etc. (or `input.checked` for checkboxes and radio buttons).
Value is available as `input.value`, `textarea.value`, `select.value`, etc. (For checkboxes and radio buttons, use `input.checked` to determine whether a value is selected.)
For `<select>`, we can also get the value by the index `select.selectedIndex` or through the options collection `select.options`.
For `<select>`, one can also get the value by the index `select.selectedIndex` or through the options collection `select.options`.
These are the basics to start working with forms. We'll meet many examples further in the tutorial.