开发者

get jquery .load() to append rather than replace?

开发者 https://www.devze.com 2022-12-26 10:05 出处:网络
is th开发者_Python百科is possible?You can use jQuery.get() to append data... jQuery.get(\"URL\", function(data) {

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/

0

精彩评论

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