Use Jquery Selectors on $.AJAX loaded HTML?

前端 未结 9 886
没有蜡笔的小新
没有蜡笔的小新 2020-11-27 11:30

I have

$.ajax({
  url: identity,
  success: function(data) { ProcessIdentityServer(data) }
});

When \'data\' is returned, is there a way to

9条回答
  •  旧时难觅i
    2020-11-27 12:34

    Sure you can use the $(data) function, one of the core jquery functions, to turn the returned html into DOM elements. Check out the docs online.

提交回复
热议问题