안녕하세요, jQuery 함수와 js 함수를 결합하는 데 문제가 있습니다. 아래의 코드는 작동하지만, 당신이 짐작 하듯이, 나는 그 때 처음 페이드 HTML을 변경 한 다음 다시 페이드 기대하고있다.jQuery 콜백 플러스 js 함수
function updateit(a) {
$("#monthlyHead").fadeOut(100);
$("#monthlyText").fadeOut(100);
if (a == 1) {
$("#monthlyHead").html(headone);
$("#monthlyText").html(textone);
}
else if (a == 2) {
$("#monthlyHead").html(headtwo);
$("#monthlyText").html(texttwo);
}
$("#monthlyHead").fadeIn(900);
$("#monthlyText").fadeIn(900);
}
이
jQuery _is_ JavaScript. –