Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

balzor onchange

<select @onchange="DoStuff">  <!-- pre-3.0 versions: onchange=@DoStuff -->
    @foreach (var template in templates)
    {
        <option value=@template>@template</option>
    }
</select>

void DoStuff(ChangeEventArgs e)
{
    string selected = e.Value.ToString();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #balzor #onchange
ADD COMMENT
Topic
Name
1+1 =