Clone not working as intended
This code should in my mind make a clone of the element
#loaded_start_container and put the clone into #content-wrapper with all
its children.
This however creates a clone, but none of the children. If I just move the
element without cloning, it works.
var loaded_content = $('#loaded_start_container').clone().attr('id',
'content_start');
$('#content-wrapper').html(loaded_content);
JQuery 2.0.3
No comments:
Post a Comment