$(function() {
$('input[type=checkbox]').click(function() {
if ($(this).is(':checked')) {
$(this).attr('checked', true).siblings().attr('checked', false);
} else {
$(this).attr('checked', false).siblings().attr('checked', false);
}
})
})
jQuery实现复选框单选
最新推荐文章于 2021-06-18 01:04:26 发布