Moving a component's DOM element with jQuery


Is there any way to move a components html around in the document and still have it wired up correctly?

Is it as simple as


Or is it a little more complicated?

I need to use a plugin that requires that i copy in html with .html() to a container that it creates.