I have problem with aggregating inputs from dynamically created combo boxes. In my view .cshtml I'm creating multiple elements with multiple choices as and I'm trying to set onClick trigger to this element like in snippet:
@foreach (var value in values)
{
<option onclick="@UpdateSelectedFilters(item.DisplayName, value)" value="@value" >@value</option>
}
But unfortunately this function "@UpdateSelectedFilters()" is executed on render of element, not on click event like i want to.