SyntaxFix
Write A Post
Hire A Developer
Questions
If you don't want to add a wrapper, you could just add the code manually, since you know the ID you are targeting:
var myID = "xxx"; var newCode = "<div id='"+myID+"'>"+$("#"+myID).html()+"</div>";