是否可以关闭或清空包含html的div?你要关闭/清空div的代码在html中。我的div是一个弹出窗口。
像这样。<div id="n_test">
<object data="test.php">
#document
<html>......
the code that empty the id="n_test"
</html>
</object>
</div>
答案 0 :(得分:0)
在jquery中使用has
选择器,不要在div标签内使用html ......
<div id="n_test">
#document
<ifame>......
the code that empty the id="n_test"
</ifame>
</div>
JS
$(document).ready(function(){
$("#n_test").has("ifame").hide();
});