遍历页面上的checkbox

$("#Button1").click(function () {
$("input[type='checkbox']").each(function () {
if ($(this).is(":checked")) {
alert($(this).attr("id"));
}
});
})

posted @ 2017-08-08 16:00  绿色的草  阅读(151)  评论(0编辑  收藏  举报