0
我有一个系统聊天,其中包含登录好友的div被重新加载。 但问题是,当我重新加载这个div。里面的div被重新加载,chatboxes消失。我有这样在不影响孩子div的情况下重新加载父div
<script>
setInterval(function() {
$('div#div1').load('./1.php #div1');
}, 5000);
</script>
<div id="loggedinfriends">
Some friends
<div id="friendchatbox" style="position:fixed;right:2px;bottom:o;height:400px;">
and the content goes here
</div>
一些代码,我不能friendchatbox从DIV1,因为他们是在一个单回路分开。在点击div1的链接后,friendchatbox打开。 有什么方法可以在不影响friendbox的情况下重新加载div1。