Development/Coding
jQuery 특정 요소만 ajax 로딩하고 싶은데...
soomtong
2010. 12. 24. 11:46
이렇게 하면 된다.
$('#link a').click(function(){
$('#content').hide().load('news.html #today', function(){
$(this).fadeIn();
});
return false;
});
클릭 이벤트 발생 > 콘텐츠 담길 부분 숨기기 > 호출한 html 파일의 특정 요소 로드 > 로딩완료 후 페이드 인 > 클릭 이벤트 false 리턴으로 이벤트 제거
그래 이거였어.
고맙습니다 learning jQuery !