Вот сырой код, смотри:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript">
function show(elem)
{
var div = document.createElement('div');
div.innerHTML = " - first 2";
elem.parentNode.appendChild(div);
}
</script>
</head>
<body>
<div><div onclick="show(this)">first</div></div>
<div>two</div>
</body>
</html>