Browse Source

Reference select guide instead of documenting selected attribute (#3224)

Co-authored-by: 宋文强 <pwnn@users.noreply.github.com>
main
Sebastian Silbermann 4 years ago
committed by GitHub
parent
commit
6a1e325098
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      content/docs/reference-dom-elements.md

3
content/docs/reference-dom-elements.md

@ -56,7 +56,8 @@ The `onChange` event behaves as you would expect it to: whenever a form field is
### selected {#selected}
The `selected` attribute is supported by `<option>` components. You can use it to set whether the component is selected. This is useful for building controlled components.
If you want to mark an `<option>` as selected, reference the value of that option in the `value` of its `<select>` instead.
Check out ["The select Tag"](/docs/forms.html#the-select-tag) for detailed instructions.
### style {#style}

Loading…
Cancel
Save