title: how to get checked checkbox table row value in codeigniter
body: <p><strong>VIEW PAGE</strong></p>
  
  <pre><code>&lt;table&gt;
  &lt;thead&gt;
      &lt;tr&gt;
          &lt;th&gt;&lt;input type="checkbox" checked="checked" class="checkAll"  name="checkAll" /&gt;&lt;/th&gt;
          &lt;th&gt;#&lt;/th&gt;
          &lt;th&gt;Beneficiary Name&lt;/th&gt;
          &lt;th&gt;Stipendiary Type&lt;/th&gt;
          &lt;th class="text-right box"&gt;Bonus ₹&lt;/th&gt;
          &lt;th class="text-right"&gt;Stipendiary ₹&lt;/th&gt;
      &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
      &lt;tr&gt;
          &lt;td align="center"&gt;
              &lt;input type="checkbox" checked="checked" class="chkclass " name="bene_id[]" value="1" /&gt;&lt;input type="hidden" name="amount[]" value="500" tabindex ="-1" /&gt;
          &lt;/td&gt;
          &lt;td&gt;1&lt;/td&gt;
          &lt;td&gt;Jeinbai Nesamony&lt;/td&gt;
          &lt;td&gt;Poor Pension&lt;/td&gt;
          &lt;td class="text-right box" id="hideshow"&gt;
              &lt;input type="text" name="bonus[]" id="bonus" value="" class="tbl-input-cus bonus" tabindex ="1" /&gt;
          &lt;/td&gt;
          &lt;td class="text-right wagein"&gt;500.00&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td align="center"&gt;
              &lt;input type="checkbox" checked="checked" class="chkclass " name="bene_id[]" value="2" /&gt;&lt;input type="hidden" name="amount[]" value="400" tabindex ="-1" /&gt;
          &lt;/td&gt;
          &lt;td&gt;2&lt;/td&gt;
          &lt;td&gt;Chellammal Kochimoni&lt;/td&gt;
          &lt;td&gt;Poor Aid&lt;/td&gt;
          &lt;td class="text-right box" id="hideshow"&gt;
              &lt;input type="text" name="bonus[]" id="bonus" value="" class="tbl-input-cus bonus" tabindex ="1" /&gt;
          &lt;/td&gt;
          &lt;td class="text-right wagein"&gt;400.00&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td align="center"&gt;
              &lt;input type="checkbox" checked="checked" class="chkclass " name="bene_id[]" value="3" /&gt;&lt;input type="hidden" name="amount[]" value="400" tabindex ="-1" /&gt;
          &lt;/td&gt;
          &lt;td&gt;3&lt;/td&gt;
          &lt;td&gt;Thasammal Thangaiah&lt;/td&gt;
          &lt;td&gt;Poor Aid&lt;/td&gt;
          &lt;td class="text-right box" id="hideshow"&gt;
              &lt;input type="text" name="bonus[]" id="bonus" value="" class="tbl-input-cus bonus" tabindex ="1" /&gt;
          &lt;/td&gt;
          &lt;td class="text-right wagein"&gt;400.00&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td align="center"&gt;
              &lt;input type="checkbox" checked="checked" class="chkclass " name="bene_id[]" value="4" /&gt;&lt;input type="hidden" name="amount[]" value="400" tabindex ="-1" /&gt;
          &lt;/td&gt;
          &lt;td&gt;4&lt;/td&gt;
          &lt;td&gt;Roselet&lt;/td&gt;
          &lt;td&gt;Poor Aid&lt;/td&gt;
          &lt;td class="text-right box" id="hideshow"&gt;
              &lt;input type="text" name="bonus[]" id="bonus" value="" class="tbl-input-cus bonus" tabindex ="1" /&gt;
          &lt;/td&gt;
          &lt;td class="text-right wagein"&gt;400.00&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td align="center"&gt;
              &lt;input type="checkbox" checked="checked" class="chkclass " name="bene_id[]" value="5" /&gt;&lt;input type="hidden" name="amount[]" value="400" tabindex ="-1" /&gt;
          &lt;/td&gt;
          &lt;td&gt;5&lt;/td&gt;
          &lt;td&gt;Kamalam Chellam R.&lt;/td&gt;
          &lt;td&gt;Poor Aid&lt;/td&gt;
          &lt;td class="text-right box" id="hideshow"&gt;
              &lt;input type="text" name="bonus[]" id="bonus" value="" class="tbl-input-cus bonus" tabindex ="1" /&gt;
          &lt;/td&gt;
          &lt;td class="text-right wagein"&gt;400.00&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/tbody&gt;
  </code></pre>
  
  <p></p>
  
  <p><a href="https://i.stack.imgur.com/FBLOY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FBLOY.png" alt="enter image description here"></a></p>
  
  <p><strong>MY REQUIREMENT</strong></p>
  
  <p>I want to save bellowed data's to table <br/>
  1. bene_id<br/>
  2. Bonus ₹<br/>
  3. Stipendiary ₹<br/></p>
  
  <p>I've fetch this table data form existing Beneficiary Table. So Bene_id and Stipendiary ₹ value get from that tabel. Bonus ₹ will be an input.<br/>
  Now i want to save table data to the payment table.<br/>
  I'm trying to post the value by array. it's working fine.<br/>
  now i've an issue with the check box. i want to neglect the row value that unchecked. That means i want row value which was checkbox : checked<br/><br/>
  i'm expecting jquery for passing checkbox : checked row value to hidden input array.</p>