Each append call expects an entire valid html element. You need to build up
the string, then append it in one go, or create the entire div element (
<div ...>...</div> ) then select that div and do a separate append to it for
its content. Examples (untested):

$(this).append(
  '<div id="' + title + '" class="edit_dialog">' +
$(".edit_accordion").html() + '</div>'
);

$(this).append(
  $('<div id="' + title + '" class="edit_dialog"></div>").append(
$(".edit_accordion") )
);

- Richard

On Tue, Jun 17, 2008 at 11:31 PM, Dan <[EMAIL PROTECTED]> wrote:

>
> I've done a little messing around and have found that something is
> wrong with:
> $(this).append( "<div id='" + title + "'
> class='edit_dialog'>" ).append( $(".edit_accordion") ).append( "</
> div>" );
>
> It only inserts the div tag and "skips" or looses the middle append
> data. The div tag is also converted into a single tag, such as <div
> id='title' class='edit_dialog' />
>

Reply via email to