I have the following dropdown. How can I bind the OnChange method to it?.

I am using Code first MVC approach. Also, how can I get the index value when binding on change method to it?

 <div class="editor-label">
     @Html.LabelFor(model => model.Id, "Empl")
 </div>
 <div class="editor-field">
     @Html.DropDownList("Id", String.Empty)
     @Html.ValidationMessageFor(model => model.Id)
 </div>

Related posts

Recent Viewed