In my cshtml
page I have a select element with multiple options. Below it I have a button which needs the value of the selected option. How do I reference the value of the selected option?
<select>
<option value="1">1</select>
<option value="2">2</select>
<option value="3">3</select>
</select>
<input type="button" value="submit" onclick="location.href='@Url.Action("MyAction", "MyController", new { property = (how do i reference our selected option value here?)})'"