<html>
<head>
<title>jQuery获取自身HTML</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-CN" />
<script type="text/javascript" src="http://files.cnblogs.com/Zjmainstay/jquery-1.6.2.min.js"></script>
</head>
<body>
<div class="aa" style="border:1px solid #ABC;200px;text-align:center;">点击获取我自身的HTML吧</div>
<script type="text/javascript">
$(document).ready(function(){
$(".aa").click(function(){alert($("<p>").append($(this).clone()).html())});
});
</script>
</body>
</html>