javascript - Get multiple <p> elements with Jquery and add them to a div -


i'm trying extract multiple <p></p> elements , append them single div. can seem first paragraph. idea?

i'm using code:

$("#result").append($wikidom.find('p').html()); 

you don't need use .html()

$("#result").append($wikidom.find('p')); //remove .html() 

when use .html() give html of first element only, not of paragraphs in jquery set. note using append on element that's in document move old location new 1 (whereas appending html of element copies it).


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -