jquery-1.5.2.js以上版本
<script type="text/javascript">
$(function(){
$(':checkbox[name=cb]').each(function(){
$(this).click(function(){
if($(this).attr('checked')){
$(':checkbox[name=cb]').removeAttr('checked');
$(this).attr('checked','checked');
}
});
});
});
</script>
<input type="checkbox" name="cb"/>
<input type="checkbox" name="cb"/>
<input type="checkbox" name="cb"/>
<input type="checkbox" name="cb"/>
<input type="checkbox" name="cb"/>
<input type="checkbox" name="cb"/>
<input type="checkbox" name="cb"/>
<input type="checkbox" name="cb"/>
<input type="checkbox" name="cb"/>