I need to have the value for the option in the following:
I have created my select as follows:
<select id="fromSelectBox" multiple="multiple" >
<% foreach (var item in Model.Projects) { %>
<option><%=Html.Encode(item.Text)%></option>
<%}
%>
</select>
How do I set the value of the option using the value in the model which s item.ID?