Changed <input> to <select> (#26691)
* Changed <input> to <select> * Update data-binding.md Made same correction to 7.0 version of topic. Co-authored-by: Wade Pickett <wpickett@microsoft.com>pull/26695/head
parent
600b423a52
commit
a2ae14b6a8
|
@ -48,9 +48,9 @@ Razor attribute binding is case sensitive:
|
|||
* `@bind` and `@bind:event` are valid.
|
||||
* `@Bind`/`@Bind:Event` (capital letters `B` and `E`) or `@BIND`/`@BIND:EVENT` (all capital letters) **are invalid**.
|
||||
|
||||
## Multiple option selection with `<input>` elements
|
||||
## Multiple option selection with `<select>` elements
|
||||
|
||||
Binding supports [`multiple`](https://developer.mozilla.org/docs/Web/HTML/Attributes/multiple) option selection with `<input>` elements. The [`@onchange`](xref:mvc/views/razor#onevent) event provides an array of the selected elements via [event arguments (`ChangeEventArgs`)](xref:blazor/components/event-handling#event-arguments). The value must be bound to an array type.
|
||||
Binding supports [`multiple`](https://developer.mozilla.org/docs/Web/HTML/Attributes/multiple) option selection with `<select>` elements. The [`@onchange`](xref:mvc/views/razor#onevent) event provides an array of the selected elements via [event arguments (`ChangeEventArgs`)](xref:blazor/components/event-handling#event-arguments). The value must be bound to an array type.
|
||||
|
||||
`Pages/BindMultipleInput.razor`:
|
||||
|
||||
|
@ -700,9 +700,9 @@ Razor attribute binding is case sensitive:
|
|||
* `@bind` and `@bind:event` are valid.
|
||||
* `@Bind`/`@Bind:Event` (capital letters `B` and `E`) or `@BIND`/`@BIND:EVENT` (all capital letters) **are invalid**.
|
||||
|
||||
## Multiple option selection with `<input>` elements
|
||||
## Multiple option selection with `<select>` elements
|
||||
|
||||
Binding supports [`multiple`](https://developer.mozilla.org/docs/Web/HTML/Attributes/multiple) option selection with `<input>` elements. The [`@onchange`](xref:mvc/views/razor#onevent) event provides an array of the selected elements via [event arguments (`ChangeEventArgs`)](xref:blazor/components/event-handling#event-arguments). The value must be bound to an array type.
|
||||
Binding supports [`multiple`](https://developer.mozilla.org/docs/Web/HTML/Attributes/multiple) option selection with `<select>` elements. The [`@onchange`](xref:mvc/views/razor#onevent) event provides an array of the selected elements via [event arguments (`ChangeEventArgs`)](xref:blazor/components/event-handling#event-arguments). The value must be bound to an array type.
|
||||
|
||||
`Pages/BindMultipleInput.razor`:
|
||||
|
||||
|
|
Loading…
Reference in New Issue