<select id="xm" onchange="ShowYS()" name="XMID">
<option value="-1">-----请选择项目-----</option>
@foreach (var item in ViewBag.XMZXlist)
{
if (ViewBag.FYBXshowlist.XMID == item.XMID)
{
<option value="@item.XMID" selected="selected">@item.Name</option>
}
else
{
<option value="@item.XMID">@item.Name</option>
}
}
</select>