<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  程序小院  阅读(757)  评论(0)    收藏  举报