我需要将一个 div 替换为另一个,并且我需要删除另一个容器。请看我的代码:
<a id="load-more" href="#">
<div class="text">Load more</div>
<div id="infscr-loading">
<img alt="Loading..." src="../loading_small.gif" style="display: none; ">
<div">No more posts to load</div>
</div>
</a>
我需要这个:
<span class="text">Load more</span>
替换为:
<div">No more posts to load</div>
所以,我的结果应该是:
<a id="load-more" href="#">
<div">No more posts to load</div>
<div id="infscr-loading">
<img alt="Loading..." src="../loading_small.gif" style="display: none; ">
</div>
</a>
有可能吗?