Html.Select with Images

Hello fellas,

So I have been trying to implement an Html.select and I would like to have images on the options alongside text. I have tried using javascript/jquery based aproaches on this scenario but do not seem to work well for me probably because I have the options generated dynamically from a List of structs that do change over time.

I was wandering whether somone has tried this before me and is willing to give me an input on what aproach he followed and how did it played out.

I am willing to take any direction whether it has js/jquery side or is just pure elm.

Thanks in advance

Html.select is rendered by the browser and you cannot style the popup menu.

Looks like you just need a fancier dropdown.

Either implement one yourself or use one already implemented, for example, the bootstrap one.