Thulasiram pakala

Thulasiram pakala

  • 903
  • 872
  • 114.8k

MVC How to get disable drop down Value

Jan 23 2024 11:56 AM

Hi

 MVC 5

 @Html.DropDownList("DDCA", ViewData["DDCA"] as List<SelectListItem>, "-- Select --", new { @class = "form-control text-center", required = "required" })

i am binding values like this after genrate otp i want to disable this drop down while submit  i am using

@disable="disable" but submition time dtop down value comes null i remove disable drop dwon value i will get but i want to disable and get that value while submission


Answers (2)