mirror of https://github.com/sveltejs/svelte
parent
716d54571e
commit
7651abdeed
@ -0,0 +1,5 @@
|
|||||||
|
<div>Cheese</div>
|
||||||
|
<input type="radio" value="Plain" checked>
|
||||||
|
<input type="radio" value="Whole wheat">
|
||||||
|
<input type="checkbox" value="Beans">
|
||||||
|
<input type="checkbox" value="Cheese" checked>
|
||||||
@ -0,0 +1,12 @@
|
|||||||
|
<script>
|
||||||
|
let tortilla = 'Plain';
|
||||||
|
let fillings = ['Cheese'];
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div>{fillings.toString()}</div>
|
||||||
|
|
||||||
|
<input type="radio" bind:group={tortilla} value="Plain">
|
||||||
|
<input type="radio" bind:group={tortilla} value="Whole wheat">
|
||||||
|
|
||||||
|
<input type="checkbox" bind:group={fillings} value="Beans">
|
||||||
|
<input type="checkbox" bind:group={fillings} value="Cheese">
|
||||||
Loading…
Reference in new issue