Hello,

I need to be able to specify a value in my <option> tag inside of a <select> tag but the value is actually the id of a field.
Here is the code:
Code:
 <select id="cmbLocation">
                      <%foreach(EnvironmentalMonitoring.Models.VqEmLocation location in  ViewData["locations"] as IEnumerable<EnvironmentalMonitoring.Models.VqEmLocation>)%>
                           <%{ %>
                           <option value=""><%=location.Name%></option>
                           <%} %>
                      </select>
so where it says <option value = ""> I need to put location.id but I am not sure how the exact syntax should look like

Any help is appreciated

Thanks

Susan