/**获取选中的checkbox值*/ function getChecked(){ var ids = ""; $("input:checkbox[name='id']:checked").each(function(i){ if(0==i){ ids = $(this).val(); }else{ ids += (","+$(this).val()); } }); return ids; };
/**获取选中的checkbox值*/ function getChecked(){ var ids = ""; $("input:checkbox[name='id']:checked").each(function(i){ if(0==i){ ids = $(this).val(); }else{ ids += (","+$(this).val()); } }); return ids; };
转载于:https://www.cnblogs.com/peak-c/p/5424674.html