<!DOCTYPE HTML>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
<script>
function add(){
$("#d").append('<div>' + $("#txt1").val() + '</div>' );
$("#txt1").val('')
}
</script>
</head>
<body>
<input type="text" value="" id="txt1" />
<input type="button" value="add" onclick="add()" />
<div id="d"></div>
</body>
</html>