<script type="text/javascript" src="jquery-1.3.2.js"></script> <script type='text/javascript'> $(function() { $('#myDiv').append($('<span>innerText</span>')); }); </script> <div id="myDiv"></div>