I want to run a an append(and more stuff later on) from within a plugin, but for some reason it doesn't do anything.
the code(basic):
(function($){
function _init(){
$('body').append('<div class="msg"/>');
}
_init()
})(jQuery);
_init()immediately. Most likelydocument.bodyis not loaded yet at this point. It is not clear to me at which stage you want to execute which code.