<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<script src="js/jquery.js"></script>
<body>
<div>
<p><input type="checkbox">1</p>
<p><input type="checkbox">2</p>
<p><input type="checkbox">3</p>
</div>
</center>
<script>
$(function () {
$(":checkbox").attr("checked",true);
});
</script>
</body>
</html>
</body>
</html>
页面载入时使用jquery来自动选中页面中的多选框
最新推荐文章于 2019-10-28 13:44:27 发布