开发者

How to unload content from loaded div by AJAX

I loaded some content in a DIV with AJAX. Then, i loaded different content from content that i loaded before. But it seems, previous loaded content is no开发者_如何学JAVAt gone, cuz there is a conflict between same named elements.

Is there a way to clean up that previously loaded content?


You can always set a blank value to the div if you no longer need the content.

 $('#yourdiv').html("");
 //reload with AJAX


yourDiv.innerHTML = "";
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜