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 = "";
精彩评论