jq获取页面中checkbox已经选中的checkbox

var len=$("input[name='bike']:checked").length;
//len为0未选中


原文地址:https://www.cnblogs.com/wenhainan/p/10869496.html