html复选框

1、添加复选框

<input type="checkbox" id="yc" name="yc" value="year" />

2、判断复选框是否被勾选

document.getElementById("yc").checked==true
原文地址:https://www.cnblogs.com/zhutouying/p/3312043.html