title: Get Checkbox value in mvc5
body: <p>I'm creating a table.I want to get selected checkbox value.</p>
  
  <pre><code>&lt;tr&gt;
    &lt;td&gt;
      @item
      &lt;input type="hidden" value="@item" name="@item" class="chkbx" id="ControllerName" /&gt;
    &lt;/td&gt;
    &lt;td&gt;                    
      &lt;input type="checkbox" id="Iscreate" value="@Create" class="chkbx" /&gt;
    &lt;/td&gt;
    &lt;td&gt;
      &lt;input type="checkbox" id="IsDelete" value="@Delete" class="chkbx" /&gt;
    &lt;/td&gt;
    &lt;td&gt;
      &lt;input type="checkbox" id="IsView" value="@View" class="chkbx" /&gt;
    &lt;/td&gt;
    &lt;td&gt;
      &lt;input type="checkbox" id="IsEdit" value="@Edit" class="chkbx" /&gt;
    &lt;/td&gt;
    &lt;td&gt;
      &lt;input type="checkbox" id="IsDownload" value="@Download" class="chkbx" /&gt;
    &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>Jquery code I use</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
    $('input[type=checkbox]').change(function () {
      var vales = $("#ControllerName").val();
      var vals = $('input[class=chkbx]:checked').map(function () {
        return $(this).val();
      }).get().join(',');
      $('#debug').val(vals);
    });
  &lt;/script&gt;
  </code></pre>
  
  <hr>
  
  <p>Basically this code create a Value in hidden Field Like this</p>
  
  <blockquote>
    <p>3-Create-Account,3-Delete-Account,3-View-Account,3-Edit-Account,3-Download-Account</p>
  </blockquote>
  
  <p>But Actually i need this </p>
  
  <blockquote>
    <p>3-Account-Create-Delete-Edit-Download-view,4-Account-Create-Delete-Edit-Download-view, 5-Account-Create-Delete-Edit-Download-view</p>
  </blockquote>
  
  <p>I'm totally Confused :(</p>