jQuery move all children to another div -


i have div many childen. how move of them div using jquery?
code looks like:

jquery("body").append("<div id='popupwrapper'></div>"); var myid = $('.floatingframelightblue1').attr('id'); jquery(myid).children().append("popupwrapper"); 

but doesn't work. i'm doing wrong?

here have simple example of it: http://jsfiddle.net/lhr79/

as have told you. need use appendto instead of append , specify selector type (class, id... ) using . or # preceding name. in case: #popupwrapper popupwrapper id , not class.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -