Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions content/docs/forms.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ Overall, this makes it so that `<input type="text">`, `<textarea>`, and `<select
>```js
><select multiple={true} value={['B', 'C']}>
>```
>
> You will need to iterate over `event.target.options` and look for elements with selected property as `true`, this [stackoverflow thread](https://stackoverflow.com/questions/28624763/retrieving-value-from-select-with-multiple-option-in-react) gives some alternatives.

## The file input Tag

Expand Down