标签:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <input type="checkbox" id="mybox" ><label for="mybox">我已经阅读了上面制度</label> <script src="./js/jquery.js"></script> <script type="text/javascript"> $(function(){ $("#mybox").click(function(){ if($("#mybox").is(":checked")) { alert("thank you"); } }) }) </script> </body> </html>
<!DOCTYPE html><html><head>
锋利的jQuery——利用is(“:checked”)判断多选框是不是被选中
标签:
原文地址:http://www.cnblogs.com/webzhang/p/4998397.html