<!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>
时间: 2024-10-15 15:40:57