我这里点击事件没反应,弹不出来不知道怎么回事
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>电影列表</title>
<script src="script/jquery-1.10.2.js"></script>
<script src="script/jquery.validate.js"></script>
<script type="text/javaScript">
$(function(){
$("#but").click(function(){
alert("hehe");
});
});
</script>
</head>
<body>
<form action="movieList.jsp"method="get">
<br>电影分类:<select name="id">
<option value="0">所有分类</option>
<c:forEach var="c" items="${categorylist}">
<c:if test="${param.id==c.id}">
<option value="${c.id}" selected="selected">${c.name}</option>
</c:if>
<c:if test="${param.id!=c.id}">
<option value="${c.id}">${c.name}</option>
</c:if>
</c:forEach>
</select>
电影名称:<input type="text"name="title"value=""/>
<input type="button"value="查询"/>
</form>
<hr/>
<table id="movieTable" border="1">
<thead>
<tr>
<th>编辑</th>
<th>电影名称</th>
<th>编号</th>
<th>分类</th>
<th>导演</th>
<th>上映时间</th>
<th>删除</th>
</tr>
</thead>
<tbody>
<c:forEach var="m" items="${movielist }">
<tr>
<td><a href="MovieUpdateServlet?id=${m.id}">编辑</a><input id="but"type="button" value="删除"/></td>
<td>${ m.title}</td>
<td>${m.movieCode}</td>
<td>${m.category.name}</td>
<td>${m.director}</td>
<td>${m.dateReleased}</td>
<td><a href="MovieDeleteServlet?id=${m.id}"></a></td>
</tr>
</c:forEach>
</tbody>
</table>
<hr/>
<p><a href="MovieAddServlet">添加新电影</a></p>
</body>
</html>