Skip to content

Commit 5a0a2f8

Browse files
committed
minor
1 parent 0e4f5e4 commit 5a0a2f8

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ A `<select>` element has 3 important properties:
181181
2. `select.value` -- the value of the currently selected `<option>`,
182182
3. `select.selectedIndex` -- the number of the currently selected `<option>`.
183183
184-
So we have three ways to set the value of a `<select>`, that do the same:
184+
They provide three different ways of setting a value for a `<select>`:
185185
186186
1. Find the corresponding `<option>` element and set `option.selected` to `true`.
187187
2. Set `select.value` to the value.
@@ -206,7 +206,7 @@ Here is an example:
206206
</script>
207207
```
208208
209-
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 ways: add/remove the `selected` property from `<option>` subelements.
209+
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.
210210
211211
We can get their collection as `select.options`, for instance:
212212

0 commit comments

Comments
 (0)