如何获取 DropDownListFor 的选中项?这是我的下拉列表:
<div class="drop-down-list">
<%: Html.DropDownListFor(model => model.StageId, ViewBag.StagesList as SelectList,new { id="stageOne"})%>
<%: Html.ValidationMessageFor(model => model.StageId) %>
</div>
我试过了,但它不工作:
<script>
var e = $('#stageOne').val();
</script>