为什么我点击“关闭”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>