Thulasiram pakala

Thulasiram pakala

  • 909
  • 872
  • 116.4k

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)