get jquery .load() to append rather than replace?
is th开发者_Python百科is possible?
You can use jQuery.get() to append data...
jQuery.get("URL", function(data) {
jQuery("#myElement").append(data);
});
I believe you have to use .get
:
$.get('ajax/test.html', function(data) {
$('.result').append(data);
});
http://api.jquery.com/jQuery.get/
精彩评论