<%@pagelanguage="java"import="java.util.*"pageEncoding="UTF-8"%>
<%
Stringpath=request.getContextPath();
StringbasePath=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01Transitional//EN">
<html>
<head>
<basehref="<%=basePath%>">
<title>MyJSP'checkbox.jsp'startingpage</title>
<metahttp-equiv="pragma"content="no-cache">
<metahttp-equiv="cache-control"content="no-cache">
<metahttp-equiv="expires"content="0">
<metahttp-equiv="keywords"content="keyword1,keyword2,keyword3">
<metahttp-equiv="description"content="Thisismypage">
<scripttype="text/javascript"src="<%=request.getContextPath()%>/jquery/jquery-1.7.min.js"></script>
<!--
<linkrel="stylesheet"type="text/css"href="styles.css">
-->
<scripttype="text/javascript">
$(function(){
//$("#box").click(function(){
//if($("#box").attr("checked")=="checked"){
//alert("ss");
//}
//})
if($("#box").is(":checked")){
alert("df");
}
})
</script>
</head>
<body>
<inputtype="checkbox"id="box"checked="checked">
</body>
</html>