How to call a function after jQuery .append is completely done?
Here\'s an example:
$(\"#root\").append(child, function(){
// Action
I think this is well answered but this is a bit more specific to handling the "subChild_with_SIZE" (if that's coming from the parent, but you can adapt it from where it may be)
$("#root").append(
$('',{
'id': 'child'
})
)
.children()
.last()
.each(function() {
$(this).append(
$('',{
'id': $(this).parent().width()
})
);
});