mirror of https://github.com/sveltejs/svelte
parent
32f5e85060
commit
e69e5525b0
@ -0,0 +1 @@
|
||||
<select><option value="">--Please choose an option--</option><option value="dog" selected>Dog</option><option value="cat">Cat</option></select>
|
@ -0,0 +1,7 @@
|
||||
<select value="dog">
|
||||
<option>{@render option("--Please choose an option--")}</option>
|
||||
<option>{@render option("dog")}</option>
|
||||
<option>{@render option("cat")}</option>
|
||||
</select>
|
||||
|
||||
{#snippet option(val)}{val}{/snippet}
|
Loading…
Reference in new issue