jquery checkbox选中事件监听

谢叶五
2023-12-01
     <div>
                                        <span>全选/全不选</span>
                                        <input type="checkbox" id="check_all_or_none" value="全选">
                                    </div>
   $("#check_all_or_none").change(function () {
        var item = $(this).is(':checked');
        alert(item)
    });

 

 类似资料: