I've got a drop down list, populated with an IEnumerable. I want to add another IEnumerable to the same drop down list, under a different section with a header.
The divided drop down list is available in bootstrap, but I'm not sure how to implement it using html.dropdownlistfor(). I use a "GetList()" function to return an IEnumerable. I would use a similar command to get the second IEnumerable for the second section in the same drop down.
My current code is below:
<div>
@Html.DropDownListFor(model => model.default,
new SelectList(GetList(), "ID", "Description"),
"Select an item",
new { @class = "form-control" })
</div>