icheck-bootstrap
效果演示,地址:http://www.htmleaf.com/Demo/201805245139.html
//获取复选框的内容值
$(".yw input[type='checkbox']").on('click',function(){
$('.ggbtn').trigger('click')
})
$('.ggbtn').on('click',function(){
//弹出结果
var arr_v = new Array();
$("input[type='checkbox']:checked").each(function(){
arr_v.push($(this).val());
});
arr_v.join(',');
console.log(arr_v);
})
来源:CSDN
作者:做块泥
链接:https://blog.csdn.net/weixin_37787674/article/details/103880012