title: Html.CheckboxFor - get selected values by jquery
body: <p>I want to get selected values in checkbox. However, I am not sure what I must add first.
  Do I need to give <code>id</code> to <code>div</code> and after that, use jQuery? Or do I need to give <code>name</code> to <code>checkbox</code> and after that use jQuery ?</p>
  
  <p>Also how can I get selected values by using javascript ?</p>
  
  <pre><code>@foreach (var item in Model)
  {
      @Html.HiddenFor(model =&gt; item.Id)
      @Html.HiddenFor(model =&gt; item.Name)
  
      &lt;div&gt;
          @Html.CheckBoxFor(x =&gt; item.Checked)
          @Html.LabelFor(x =&gt; item.Checked, item.Name)
      &lt;/div&gt;
  }
  </code></pre>