how to remove a div tag inside another using jquery

how to remove a div tag inside another using jquery

Hi,

In my application iam loading another webpage inside a divtag like below

  1. $("#ContentPlaceHolder1_txtsource").click(function (e) {
            e.preventDefault();
            $('#divdistance').show();
            $('#divdistance').html('<object data="http://www.xyz.asp" />');  
        });

this is working fine

my requirement is to remove a particular div of http://www.xyz.asp

like this

$("divdistance").children(".navbar-header").remove();
but not working

this should be after loading of http://www.xyz.asp

how it is possible


Regards

Baiju