Merge pull request #2190 from dorelljames/patch-2

Update 2-ui/4-forms-controls/1-form-elements/article.md
This commit is contained in:
Ilya Kantor 2020-10-13 09:22:35 +03:00 committed by GitHub
commit 8ccc7f6fc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -205,7 +205,9 @@ Here is an example:
</script>
```
Unlike most other controls, `<select>` allows to select multiple options at once if it has `multiple` attribute. That's feature is rarely used. In that case we need to use the first way: add/remove the `selected` property from `<option>` subelements.
Unlike most other controls, `<select>` allows to select multiple options at once if it has `multiple` attribute. Although such functionality is available, it is rarely used.
In cases that you have to, then use the first way: add/remove the `selected` property from `<option>` subelements.
We can get their collection as `select.options`, for instance: