I have Institutes collection. it contains ID, Description, Name, Age etc properties. I can get ID and Description after selection. but how to get other properties (e.g. Name) based on selection. here, I need "Name" property as well.
I have below onchange function written in javascript . I have to get "Name" property value. I dont want to call server logic again -
$("#InstituteID").change(function() {
// Need some logic to get Name value
});
Dropdownlist code -
@Html.DropDownList("InstituteID",
new SelectList(
ViewBag.Institutes,
"ID",
"Description"
),
"-- Institute Type --", new { @class = "form-control" })