mirror of https://github.com/sveltejs/svelte
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
518 B
19 lines
518 B
4 years ago
|
<script>
|
||
|
let foo = [];
|
||
|
</script>
|
||
|
|
||
|
<p>Checked: {foo}</p>
|
||
|
|
||
|
<hr>
|
||
|
|
||
|
<input type='checkbox' bind:group={foo} value='a'>a<br>
|
||
|
<input type='checkbox' bind:group={foo} value='b'>b<br>
|
||
|
<input type='checkbox' bind:group={foo} value='c'>c<br>
|
||
|
<input type='checkbox' bind:group={foo} value='d'>d<br>
|
||
|
|
||
|
<hr>
|
||
|
|
||
|
<input type='checkbox' bind:group={foo} value='a'>a<br>
|
||
|
<input type='checkbox' bind:group={foo} value='b'>b<br>
|
||
|
<input type='checkbox' bind:group={foo} value='c'>c<br>
|
||
|
<input type='checkbox' bind:group={foo} value='d'>d<br>
|