I want to disable a dropdownlist with jQuery code below. In IE 11 the dropdownlist is disabled but in chrome it remains enabled. Any one know of a much more reliable way of getting this to work across browsers?
if (!userEmail.trim()) {
$("#DropDownList1").dropdownchecklist("disable");
}
And below is the definition of the dropdownlist
<div id="divList">
@Html.DropDownList("DropDownList1", new SelectList(ViewBag.MyList as System.Collections.IEnumerable, "Value", "Text", 0))
</div>