title: Active Select option in Razor
body: <p>I am working on a mobile version of my website. I have the option Action working however when I select, for example "About" it will take me to the correct page but the navigation bar goes back to the "Home" option. How do I go about doing this? thanks in advance</p>
  
  <pre><code>&lt;select class="navbar-nav" style="width:250px" onchange='location.href = this.value'&gt;
                  &lt;option value="@Url.Action("Index", "Home")"&gt;Home&lt;/option&gt;
                  &lt;option value="@Url.Action("About", "Home")"&gt;About&lt;/option&gt;
                  &lt;option value="@Url.Action("Products", "Home")"&gt;Products&lt;/option&gt;
                  &lt;option value="@Url.Action("Services", "Home")"&gt;Services&lt;/option&gt;
                  &lt;option value="@Url.Action("Contact", "Home")"&gt;Contact&lt;/option&gt;
              &lt;/select&gt;
  </code></pre>