<script>
window.onload=function(){
var obj=document.getElementById('SelectType');
for(i=0;i <2;i++)
{
var liobj = document.createElement( "li");
for(ii=0;ii<5;ii++)
{
var chk = document.createElement( "input");
chk.setAttribute( "name", "Cc[]");
chk.setAttribute( "type", "checkbox");
chk.setAttribute( "ID","ClassID");
chk.setAttribute( "value", "100");
chk.setAttribute( "class", "datechk");
liobj.appendChild(chk);
var oTextNode = document.createTextNode("第" + (ii+1) + "项");
liobj.appendChild(oTextNode);
}
obj.appendChild(liobj);
}
}
</script>
<body>
<div id="SelectType"></div>
</body>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货