web developer๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป

[jQuery] ajax success html์—์„œ ์›ํ•˜๋Š” ์š”์†Œ ์ฐพ๊ธฐ ๋ณธ๋ฌธ

js

[jQuery] ajax success html์—์„œ ์›ํ•˜๋Š” ์š”์†Œ ์ฐพ๊ธฐ

natrue 2021. 9. 15. 17:40
728x90

$(result).find("์ฐพ์œผ๋ ค๋Š” ์š”์†Œ")

$.ajax({
  type : "GET",  
  url : "url ์ž…๋ ฅ", 
  dataType : "html", 
  success : function(result){
    $(".ํด๋ž˜์Šค๋‚˜ #์•„์ด๋””").html($(result).find(".ํด๋ž˜์Šค๋‚˜ #์•„์ด๋””")); //("์ฐพ์œผ๋ ค๋Š”์š”์†Œ");
  }
});