全選 共選中0條 ...
<script> $('input[type=checkbox]').click( function () { $('span#cheak_len').empty(); var len = $("input[name=product_bound_id]:checkbox:checked").length; $('span#cheak_len').append(len); } ) </script>
<!--全選--> <label for="exampleInputEmail2">全選</label> <input type="checkbox" class="allAndNotAll"> 共選中<span id="cheak_len">0</span>條 <!-- 單個選框--> <td><input type="checkbox" value="{{ data.id }}"name="product_bound_id" id="inlineCheckbox1"></td>