내 tabcontainer를 제어하는 Jquery 스크립트가 "개체 예상"런타임 오류를 발생시킵니다.Jquery 런타임 오류 : 예상 한 개체
$(document).ready(function() {
//When page loads...
$(".tab_content").hide(); //Hide all content
$("ul.tabs li:first").addClass("active").show(); //Activate first tab
$(".tab_content:first").show(); //Show first tab content
//On Click Event
$("ul.tabs li").click(function() {
$("ul.tabs li").removeClass("active"); //Remove any "active" class
$(this).addClass("active"); //Add "active" class to selected tab
$(".tab_content").hide(); //Hide all tab content
var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
$(activeTab).fadeIn(); //Fade in the active ID content
return false;
});
});
스타일 시트와 함께 할 그 무언가를 가지고 : 솔직히 이유를 찾을 수 없습니다 ?
오류를 어느 라인에서 발생합니까? –
당신이 오류에 대한 더 많은 정보를 제공하고 어디에서 답을 얻기가 힘들지 만 않는 한. jQuery 스크립트 파일을 올바르게 포함 시켰습니까? 실행할 최소한의 요소 만 포함되어있는 HTML 페이지에서 코드를 실행하는 것은 어떻습니까? –
jquery.js에 링크 했습니까? – Glennular