as I can access the elements of type checkbox
and fence me adding in a input
the number of selected rows as you can see in the image.
My table:
<tbody>
<?php if(!empty($tarimas)): ?>
<?php foreach($tarimas as $tarimas): ?>
<tr role="row" class="odd">
<td tabindex="0" class="sorting_1"><input type="hidden" value="<?php echo $tarimas->id;?>" name='inputseleccion[]'><?php echo $tarimas->id; ?></td>
<td><span class="badge bg-green"><?php echo $tarimas->peso; ?></span> kgs</td>
<td><?php echo $tarimas->cajas; ?> cajas</td>
<td>
<div class="checkbox">
<label>
<input type="checkbox" value="" name='inputselect[]' class="chkseleccion"> Añadir
</label>
</div>
</td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</tbody>
I guess it's with javascript or jquery but how can I access it and know if it has been changed to checked? to tell me how to access and bring the results of the checkered row would help me a lot.