开发者

Make a html page with content() and jquery

开发者 https://www.devze.com 2022-12-18 08:40 出处:网络
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:

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

精彩评论

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

关注公众号