I am using jQuery and this plugin to pull content from an external site.
It works great using the following code:
$.ajax({
ur
In your original success callback you're fetching your html contents from responseText, you should do the same in the second case:
success: function(res) {
$(res.responseText).find('div.content').each(function(){
$('#here').append($(this).html());
});
Using class="content" or id should work. However, you should be aware that the code above adds all div's that have class content to your id="here" div, which might not be what you want. If you want just the contents of a specific element, use its id instead.