my question is
i have values in my dropdownlist.............i want to to do like tht is"if i select any 1 item from combox then watever value of thtat item..tht item i want to display in simply label..how can i do it...i want tht in selected index change evanrt of ajax or javascript"
Mvc 4 dropdownlist to label
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Jignesh TrivediRank #16 · 50.3K reputationPosted Mar 28, 2013, 5:11 AM EDT
hi,
try following code it might help you.
<%: Html.DropDownListFor(s => s.myDropDownVal, Model.YearData, new { onchange = "writeLableValue()" })%>