0

I'm trying to bind my select element's value and a change event as well. No luck. I've tried the following, but it says change event is used by bind event.

<select name="counties" id="counties" @bind="selectedCounty" @onchange="@((args)=>Test(args))">
<...>
Ken White
  • 123,280
  • 14
  • 225
  • 444
Rod
  • 14,529
  • 31
  • 118
  • 230
  • Do you want to both bind to `selectedCountry` i.e. display and update the bound field, and have an additional event handler driven from the `onchange` event? – MrC aka Shaun Curtis Oct 29 '22 at 22:12

0 Answers0