title: Razor ForEach, Get value on click
body: <p>I'm using razor syntax to generate a list of labels. </p>
  
  <pre><code>@foreach(var label in Model.Labels)
  {
     @Html.Label(label, new  { id = "??" }) &lt;br /&gt; &lt;br /&gt;
  }
  </code></pre>
  
  <p>It renders like this:</p>
  
  <p>item1</p>
  
  <p>item2</p>
  
  <p>What must I do in Jquery to be able to alert the name of the label that was clicked?</p>
  
  <p>If I give it a static Id, the click event only fires on the first element which is because  there is multiple labels with the same ID. </p>