被选中的checkbox的值

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

  

posted @ 2012-11-18 19:20  程序员-初学者  阅读(174)  评论(0编辑  收藏  举报