Update article.md
This commit is contained in:
parent
b93be7398a
commit
d78ce9ca32
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ This syntax is optional. We can use `document.createElement('option')` and set a
|
|||
|
||||
The difference between `defaultSelected` and `selected` is that `defaultSelected` sets the HTML-attribute (that we can get using `option.getAttribute('selected')`, while `selected` sets whether the option is selected or not.
|
||||
|
||||
In practice, you should usually set _both_ values to `true` or `false` (or omit; that's the same as `false`).
|
||||
In practice, one should usually set _both_ values to `true` or `false`. (Or, simply omit them; both default to `false`.)
|
||||
|
||||
For instance, here's a new "unselected" option:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue