Removing DIVs in a jquery dialog
- by Macinville
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?