<input type="checkbox" id="cr"><label for="cr">我已经阅读</label> <br>a 用DOM方式来判断是否被选中 <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="91833" class="copybut" id="copybut91833" onclick="doCopy('code91833')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code91833"> <br>$(function(){ <br>var $cr = $("#cr"); <br>var cr =$cr[0]; <br>$cr.click(function(){ <br>if(cr.checked){ <br>alert("谢谢注册"); <br>} <br>else{ <br>alert("NO"); <br>} <br>}); <br>}); <br> </div>