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