爲什麼我點擊「關閉」div,不顯示「基本文本」?總之,爲什麼不工作第二個「點擊」功能?jquery:雙擊功能
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.4.4.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#sp").click(function(){
$("#info").html("<div><div id='close'>Close</div><div>new text</div></div>");
});
$("#close").click(function(){
$("#info").html("<div>basic text</div>");
});
});
</script>
<style>
</style>
</head>
<body>
<p id="sp">Click</p>
<div id="info">
<div>basic text</div>
</div>
</body>
</html>