hi guys try this code it works very smooth
Html
<html><body>
<div id="container"></div>
</body></html>
Jquery
$('<div id="footer"><p>جميع الحقوق محفوظه لشركة</p></div>').insertAfter('#container');
but the problem in Arabic letters its look like that ������������������������