开发者

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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜