我正在将一个对象嵌入到我的网站上,并希望从中删除一个 div。那可能吗?我想用 jQuery 删除对象标签内具有特定 id 的 div。我尝试了下面的 jQuery,但它没有选择嵌入对象内的 div。
$("div").filter(function(){
console.log(this.id); // i don't see any of the id's from the div's inside my object
});
编辑:
<object data=http://www.msn.com width='100%' height='100%'>
<embed src=http://www.msn.com width='100%' height='100%'>
</embed> Error: Embedded data could not be displayed. </object>
我需要在我的网站上删除嵌入对象内的 div。
请帮忙。
谢谢