被选中的checkbox的值 程序员

$("#buy").click(function(){
		$("input[type=checkbox]").each(function(i){
			if($(this).attr('checked')){
				alert(this.value);
			}
		});
	});

  

原文地址:https://www.cnblogs.com/sallon/p/2776196.html