<input id="a" type="checkbox"/>
<input id="b" type="checkbox"/>
<script>
$('#a').click(function(){
$(this).attr('checked','checked');
$('#b').removeAttr('checked');
})
$('#b').click(function(){
$(this).attr('checked','checked');
$('#a').removeAttr('checked');
})
</script>

posted on 2017-05-22 09:39  程序小院  阅读(739)  评论(0编辑  收藏  举报