title: Return Selected Item Value
body: <p>So I have this select block in my code:</p>
  
  <pre><code>&lt;select id="mS" name="mealSelection" onselect=""&gt;
                      &lt;optgroup label="Generell"&gt;
                          &lt;option selected label="Alles" value="0" /&gt;
                      &lt;/optgroup&gt;
                      @{
                          List&lt;List&lt;string&gt;&gt; kategorien = new List&lt;List&lt;string&gt;&gt;();
                          List&lt;List&lt;int&gt;&gt; catIDs = new List&lt;List&lt;int&gt;&gt;();
                          while (reader.Read())
                          {
                              if (reader["TopKategorie"].ToString().Equals(""))
                              {
                                  List&lt;string&gt; nextList = new List&lt;string&gt;();
                                  nextList.Add(reader["Bezeichnung"].ToString());
                                  kategorien.Add(nextList);
                                  List&lt;int&gt; nextCatList = new List&lt;int&gt;();
                                  nextCatList.Add(Int32.Parse(reader["ID"].ToString()));
                                  catIDs.Add(nextCatList);
                              }
                              else
                              {
                                  int lastPos = kategorien.Count - 1;
                                  kategorien[lastPos].Add(reader["Bezeichnung"].ToString());
                                  catIDs[lastPos].Add(Int32.Parse(reader["ID"].ToString()));
                              }
                          }
                          for (int i = 0; i &lt; kategorien.Count; i++)
                          {
                              &lt;optgroup label=@kategorien[i][0]&gt;
                                  @for (int j = 1; j &lt; kategorien[i].Count; j++)
                                  {
                                      &lt;option label=@kategorien[i][j] value=@catIDs[i][j] /&gt;
                                  }
                              &lt;/optgroup&gt;
                          }
                      }
                  &lt;/select&gt;
  </code></pre>
  
  <p>Short explanation: Our professor gave us the task to create a web application in which you can order food. This list is meant to filter the food by category (e.g. Asian, fast food etc.) I used a two dimensional List, because the categories are all separated in "top-categories" like snack, dessert, and so on.</p>
  
  <p>I now need a button that links to a url containing the value of the selected option as parameter. However, my professor specifically demanded to use "select", "optgroup" and "option" and I haven't worked with controllers yet. Any help is appreciated.</p>