jQuery CLICK 事件或 .html 不工作
jQuery CLICK event or .html not working
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<style>
#circle {
width:200px;
height:200px;
background-color:blue;
border-radius:100px;
margin:10px;
}
</style>
<script src="file:///C|/Users/Gopal/Desktop/jquery-1.11.2.js"></script>
</head>
<body>
<div id="circle"></div>
<p>THIS IS A CIRCLE</p>
</body>
<script>
$("#circle").click(function() {
$("p").hmtl("its changed");
});
</script>
</html>
当我 在圆圈上单击 时,我希望圆圈下方的文本更改为 $("p") 中提到的文本。 hmtl("its changed"); 但它没有发生
的工作样本
<div id="circle">I am a circle</div>
<p>THIS IS A CIRCLE</p>
$("#circle").click(function(){
$("p").html("Changed");
});
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<style>
#circle {
width:200px;
height:200px;
background-color:blue;
border-radius:100px;
margin:10px;
}
</style>
<script src="file:///C|/Users/Gopal/Desktop/jquery-1.11.2.js"></script>
</head>
<body>
<div id="circle"></div>
<p>THIS IS A CIRCLE</p>
</body>
<script>
$("#circle").click(function() {
$("p").hmtl("its changed");
});
</script>
</html>
当我 在圆圈上单击 时,我希望圆圈下方的文本更改为 $("p") 中提到的文本。 hmtl("its changed"); 但它没有发生
<div id="circle">I am a circle</div>
<p>THIS IS A CIRCLE</p>
$("#circle").click(function(){
$("p").html("Changed");
});