체크박스 선택 항목 동적 표시

2955 단어
   


 <span style="color: #000000;">
        $(</span>'input[type=checkbox]'<span style="color: #000000;">).click(
            </span><span style="color: #0000ff;">function</span><span style="color: #000000;"> () {
                $(</span>'span#cheak_len'<span style="color: #000000;">).empty();
                </span><span style="color: #0000ff;">var</span> len = $("input[name=product_bound_id]:checkbox:checked"<span style="color: #000000;">).length;
                $(</span>'span#cheak_len'<span style="color: #000000;">).append(len);
            }
        )
    </span>

        <label for="exampleInputEmail2"> label>
        <input type="checkbox" class="allAndNotAll">   
         <span id="cheak_len">0span> 



<td><input type="checkbox" value="{{ data.id }}"name="product_bound_id" id="inlineCheckbox1">td>

좋은 웹페이지 즐겨찾기