复制代码代码如下 :
<%@ page language = "java"import = "java.util.*"pageencoding = "utf-8"%>
<%
문자열 path = request.getContextPath ();
String BasePath = request.getScheme ()+": //"+request.getServerName ()+":"+request.getServerport ()+path+"/";
%>
<! doctype html public "-// w3c // dtd html 4.01 Transitional // en">
<html>
<헤드>
<base href = "<%= basepath%>">
<title> 내 jsp 'checkbox.jsp'시작 페이지 </title>
<meta http-equiv = "pragma"content = "no-cache">
<meta http-equiv = "캐시 제어"content = "no-cache">
<meta http-equiv = "만료"내용 = "0">
<meta http-equiv = "keywords"content = "keyword1, keyword2, keyword3">
<meta http-equiv = "description"content = "이것은 내 페이지입니다">
<script type = "text/javaScript"src = "< %= request.getContextPath () %>/jQuery/jQuery-1.7.min.js"> </script>
<!-
<link rel = "Stylesheet"type = "text/css"href = "styles.css">
->
<script type = "text/javaScript">
$ (function () {
// $ ( "#box"). 클릭 (function () {
// if ($ ( "#box"). attr ( "Checked") == "checked") {
// Alert ( "SS");
//}
//})
if ($ ( "#box"). is ( ": checked")) {
경고 ( "DF");
}
})
</스크립트>
</head>
<body>
<input type = "checkbox"id = "box"checked = "checked">
</body>
</html>