<!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>
<title></title> <script type="text/javascript" src="Jquery/jquery-1.5-vsdoc.js"></script> <script type="text/javascript">
$(document).ready(function() {
$("p").click(function() {
$(this).hide(); });
});
</script></head>
<body>
<p style="border: solid 1px">
If you click me, you will be disappear.</p>
</body>
</html>
为什么这个不能触发呢~教程上一模一样可以出发不知道问题哪里了求解惑~
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title> <script type="text/javascript" src="Jquery/jquery-1.5-vsdoc.js"></script> <script type="text/javascript">
$(document).ready(function() {
$("p").click(function() {
$(this).hide(); });
});
</script></head>
<body>
<p style="border: solid 1px">
If you click me, you will be disappear.</p>
</body>
</html>
为什么这个不能触发呢~教程上一模一样可以出发不知道问题哪里了求解惑~
http://code.jquery.com/jquery-1.5.1.min.js
<!--代码是没问题,不然就是路径问题,可是lz说路径没问题,那就是那个js包问题了,lz重新下个看看-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("p").click(function(){
$(this).hide();
})
})
</script>
</head>
<body>
<p style="border: solid 1px">
If you click me, you will be disappear.</p>
</body>
</html>