Make a html page with content() and jquery
Is there a way to make an html page from the contents() object??
for example iterate over $('body').contents() object and make a output like this:
<bod开发者_运维百科y>
<div>text<a href=#></a></div>
<p>%^$$</p>
....
</body>
thanks!!! and sorry for the english!
Have a look at jQuery append().
http://api.jquery.com/append/
精彩评论