본문 바로가기

Develop/jQuery

[jQuery] html 파일 로드해오기.

$.ajax({
  url:'[path/to/html/file.html]',
  context: document.body,
  success: function(response){
    html = response;
  }
});

이렇게 해서 html파일을 javascript로 load해올 수 있음.

'Develop > jQuery' 카테고리의 다른 글

[jQuery] Select 값 가져오기  (0) 2012.07.31
[jQuery] remove array item  (0) 2012.06.27
[jQuery] .prependTo() .appendTo()  (0) 2012.05.07
[jQuery] live 바인딩  (0) 2012.04.27
[jQuery] .each()  (0) 2012.04.27