Update site/content/tutorial/06-bindings/05-textarea-inputs/text.md

pull/8311/head
Simon H 4 years ago committed by GitHub
parent 5966da6f32
commit cf3f2d6f78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,7 +1,7 @@
---
title: Textarea inputs
---
Similar to the text input in Svelte, a two-way binding will allow the user to update the value variable when information is updated in the textarea in the DOM. Try typing in the textarea, and then use 'bind:value':
The `<textarea>` element behaves similarly to a text input in Svelte — use `bind:value` to create a two-way binding between the `<textarea>` content and the `value` variable:
```html
<textarea bind:value={value}></textarea>

Loading…
Cancel
Save