$(function () {
$(":checkbox").click(function () {
//设置当前选中checkbox的状态为checked
$(this).attr("checked", true);
$(this).siblings().attr("checked", false); //设置当前选中的checkbox同级(兄弟级)其他checkbox状态为未选中
});
});
转载于:https://www.cnblogs.com/Kirins/p/10328673.html