Remove a div inside another div using jquery

Posted by Klbaiju under jQuery on 6/29/2016 | Points: 10 | Views : 202 | Status : [Member] | Replies : 2
Hi,

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

$("#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




Responses

Posted by: A2H on: 6/29/2016 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Very likely the issue may be we are not reffereing to the div which needs to be removed. please post your div html markup if possible

Thanks,
A2H
My Blog

Klbaiju, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Mailtodhanz on: 7/8/2016 [Member] Starter | Points: 25

Up
0
Down
Looks like you posted the half code.. Could you please share the full code then will give the solution

Klbaiju, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response