title: How to get selected values for dynamic checkbox in mvc?
body: <p>I have created a checkbox list in mvc and now i need to take the checked checkbox values using jquery for further coding.But i'm having problem in taking the checkbox values and my code is below</p>
  
  <pre><code> @{
  int i = 1;
  foreach (CheckBoxList item in Model.Items)
  {
       &lt;input type="checkbox" name="#= Text #" id="#= Text#(i) #" value="#= item.Value #" /&gt;
       &lt;span&gt; @item.Text&lt;/span&gt;
    &lt;br/&gt;
     i++;
  }
  }
  </code></pre>
  
  <p>tell me how to retrieve checkbox values using jquery</p>
  
  <p>Thanks in advance</p>