I am trying to disable or enable a dropdownlistfor in my mvc application based on model property:-
what I am doing is :-
@Html.DropDownListFor(m => m.
This is an HTML basic rule: from the moment you set the attribute disabled (regardless of its value), the element will be disabled.
disabled
To get what you want, you need to create an HTML extension DropDownListFor.
DropDownListFor
Please see this link.