How can I make a divider between options in a select list? I've read it's possible to make a dummy object and then disable it? Is this the easiest way to do it and in case how can I do that?
Solution
<select asp-for="GameId" asp-items="@(new SelectList(ViewBag.Games, "Id", "Name"))" class="form-control">
<option>Please select your game</option>
<option disabled>──────────</option>
</select>