mercredi 27 juillet 2016

How to get count of checkbox checked which has same value in dynamically created td?

Here i can select many check box's at same time And checkbox values may have duplicates. If check checkbox with same value twice need to get count as 2 and so on..

my table

echo '<tr style = "text-align:left"><td><input type = "checkbox" class = "selected_id_v" name = "selectd_prcs[]" value = '.$value->labdetail.'></td></tr>

what i tried

$(document).on('change','.selected_id_v',function () {
    if($(this).is(':checked'))
    {
     var checked val = $(this).val();
    }
});




Aucun commentaire:

Enregistrer un commentaire