title: MVC RadiobuttonFor Razor how to make label click able?
body: <p>I'm trying to make a radiobuttonlist in razor syntax so far I have come up with this </p>
  
  <pre><code>@foreach (var p in Model)
  {
      &lt;div id="projectList" class="col-lg-5"&gt;
          @Html.RadioButton("name", "1", false, new { onCLick = "ShowOption(this)", id = p.id.ToString() })
          @Html.Label(p.id.ToString(), p.name)
      &lt;/div&gt;
  }   
  </code></pre>
  
  <p>but the label isn't associated with the radiobutton.</p>