JSP页面多选全选无反应,分页也没有出来,请教大神指点指点
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
td {
text-align: center;
}
a {
text-decoration: none;
}
#antiAll,#delAll,#cancelAll,#all {
width: 80px;
height: 28px;
line-height: 25px;
margin-left: 100px;
text-align: center;
}
</style>
<script>
$(document).ready(function() {
var state = '${state}';
$("#state").val(state);
var visitType = '${visitType}';
$("#visitType").val(visitType);
/*全选*/
$("#all").click(function() {
$("input[name='checkbox1']").each(function() {
$(this).attr("checked", true);
});
});
/*取消选中*/
$("#cancelAll").click(function() {
$("input[name='checkbox1']").each(function() {
$(this).attr("checked", false);
});
});
/*反向选择*/
$("#antiAll").click(function() {
$("input[name='checkbox1']").each(function() {
$(this).attr("checked", !this.checked);
});
});
});
/*删除选中项*/
function delAll() {
var ret = window.confirm('确认删除吗?记录删除后无法恢复!');
if (ret == true) {
var value = "";
$("input[name='checkbox1']").each(function() {
if ($(this).attr("checked") == "checked") {
value = value + $(this).val() + " ";
}
});
window.location.href = "servlet/ClientServlet?action=deleteById&clientId="
+ value;
}
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>行程安排</title>
<script type="text/javascript" src="jquery-1.7.2.js"></script>
<link type="text/css" rel="stylesheet" href="../css/many.css" />
</head>
<body style="margin: 0px; background-color: #E5E5E5; font-family: 黑体;">