qwermjk,
<!DOCTYPE HTML>
<html>
<head>
<title></title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
<div id='qqq'><span>123</span></div>
<script type="text/javascript">
var div = $('<div/>')
$('#qqq').clone().appendTo(div)
alert(div.html())
</script>
</body>
</html>