【发布时间】:2017-09-13 18:16:22
【问题描述】:
example 我的下拉列表加载了这个: @Html.EnumDropDownListFor(x => x.field, new { @class= "form-control select", type = "text", id = "dropdownlist" })
Javascript:
$("#dropdownlist").on("change",function () {
var asdf= document.getElementById("#dropdownlist");
swal({...},function (isConfirm) {
if (isConfirm) {
//post url
}
else{
if isconfirm false I want to dropdown list selected default value
how ı can
}
【问题讨论】:
-
默认值你的意思是下拉列表的第一个
<option>? -
是第一个
标签: javascript jquery drop-down-menu