Any idea how to call a server action whenever my dropdown list selects a new value.
Here's my attempt so far....
<select @ko.Bind.Options(m => m.Markets).Value(m => m.SelectedMarket).ValueUpdate(KnockoutValueUpdateKind.Change) onchange="@ko.ServerAction("MarketSelected", "BackupFee", new { marketSelected = "abc" })"></select>
I'm using onchange to call my server action, but can't seem to pass the dropdown list selected value, hence 'abc'
Perhaps I should be using @ko.Html.DropDownList, but I can't find an example showing how to call a server action when the value changes.
I am new to KnockoutMvc, so any help appreciated.
Regards,
Paul