Removing DIVs in a jquery dialog

Posted by Macinville on Stack Overflow See other posts from Stack Overflow or by Macinville
Published on 2011-01-13T17:04:36Z Indexed on 2011/01/13 19:53 UTC
Read the original article Hit count: 268

Filed under:
|
|

I have a dialog window that uses a URL for its contents

{

function(){jQuery.ajax({'success':function(html) {
        jQuery('#menu_dialog').html(html);
        $('#menu_dialog').dialog('open');
        $('#header').hide();
       },'url':'/testing/index.php/menu','cache':false});return false;};

}

What happens is that it was displaying the whole page, including the header, the footer,navigation menu,etc. What I want is for the dialog to only display the content inside the <content> tag.

How can I remove the unnecessary divs in the dialog window?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-ui-dialog