看书:<input type="checkbox" name="checkbox" value=1><br>
写字:<input type="checkbox" name="checkbox"value=2><br>
打飞机:<input type="checkbox" name="checkbox"value=3><br>
玩游戏:<input type="checkbox" name="checkbox"value=4><br>
<script>
//全选
$(function(){
$(':input').attr("checked",true);
});
</script>
用jQuery制作默认选中的复选框
最新推荐文章于 2024-04-03 18:29:15 发布