Myeclipse中加入Jquery无效果,文件夹js,里的文件jquery-1.6.4.js JSP页面没有效果
<scriptsrc="/js/jquery-1.6.4.js"type="text/javascript"></script><scriptlanguage="java...
<script src="/js/jquery-1.6.4.js" type="text/javascript">
</script>
<script language="javascript">
function loadimage(){
document.getElementById("randImage").src="image.jsp?"+Math.random();
}
</script>
<script language="javascript">
$(function(){
$("#bt").click(function(){
alert("haha");
});
});
</script>
<base href="<%=basePath%>">
</head>
<body>
<form action="Success.jsp">
<table>
<tr><td><input type="text" id="te"/></td><td><img alt="code" id="randImage" src="image.jsp" width="60" height="20" border="1" align="absmiddle"/> </td></tr>
<tr><td height="36" colspan="2" align="center" valign="middle"><a href="javascript:loadimage();"><font>看不清</</font></a></td></tr>
</table>
<input type="button" id="bt" value="提交 "/>
</form>
</body>
</html> 展开
</script>
<script language="javascript">
function loadimage(){
document.getElementById("randImage").src="image.jsp?"+Math.random();
}
</script>
<script language="javascript">
$(function(){
$("#bt").click(function(){
alert("haha");
});
});
</script>
<base href="<%=basePath%>">
</head>
<body>
<form action="Success.jsp">
<table>
<tr><td><input type="text" id="te"/></td><td><img alt="code" id="randImage" src="image.jsp" width="60" height="20" border="1" align="absmiddle"/> </td></tr>
<tr><td height="36" colspan="2" align="center" valign="middle"><a href="javascript:loadimage();"><font>看不清</</font></a></td></tr>
</table>
<input type="button" id="bt" value="提交 "/>
</form>
</body>
</html> 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询