<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();
}
Code Example |
---|
Html :: bootstrap buttons Disabled state |
Html :: tailwind rotate 180 |
Html :: how to include external javascript in html |
Html :: curl html file |
Html :: elements should have autocomplete attributes |
Html :: how to put image in navbar |
Html :: v-progress-circular |
Html :: html add image from folder |
Html :: button display text html |
Html :: clear form value after submit |
Html :: html css good button |
Html :: html italic text |
Html :: html arrow symbol |
Html :: larger checkbox html |
Html :: whatsapp href link code |
Html :: on button click video popup in html |
Html :: link to external site html |
Html :: select required |
Html :: input-group-addon |
Html :: button not clickable html |
Html :: create a link in md |
Html :: javascript how to set a textbox value to nothing |
Html :: html unordered list |
Html :: css image slideshow |
Html :: ul html |
Html :: username patterns |
Html :: git list deleted files |
Html :: px in server |
Html :: readme.md relative link |
Html :: meta tag checker |