I've done some more messing around and came up with a solution that worked:
$(this).append( "<div id='" + title + "' class='edit_dialog'></ div>" ); $(".edit_accordion:first").clone().appendTo( $("#" + title) ); Thanks for all the help Jason and Richard. PROBLEM SOLVED!