I have three DropDownLists in my view. The code I use to visualize them is this:
@{
var listItems = new List<SelectListItem>();
listItems.Add(new SelectListItem { Text = String.Empty, Value = String.Empty });
foreach (var name in ViewBag.Names)
{
listItems.Add(new SelectListItem { Text = name, Value = name });
}
}
<span>
Repair Form : @Html.DropDownList("dropDownList", listItems)
</span>
//code...
<span>
Tools : @Html.DropDownList("kkcDropDownList", kkcItems)
</span>
//code...
<span>
Document : @Html.DropDownList("docDropDownList", docItems)
</span>
//code...
And I get this as result :

What I want to change is the order of appearance - now it's text-dropDown, text-dropDown.. Insted I want to be text and below the text the dropDown like this:
