I have a view, with a list that i have populated. I want to have a DisplayFor that will change and show what is selected in the drop down list.
This is my view so far. I have tried googling the problem, and after a few hours of reading through pages i cant find anything specific to what i am trying.
<select id="Test1">
<option value="test">Role1</option>
<option value="test">Role2</option>
<option value="test">Role3</option>
<option value="test">Role4</option>
</select>
@Html.DisplayFor(Test1)
But of course this will just not work. And i really dont know what to try now. I tried using Test1.selected, and i also tried having Test1 as a model then pass a list through, but it would require a page to be refreshed.