I have a bug I can't fix.... My tabs are working, but I can't get the content to show correctly..
I wanted to use div tags instead of the <li>. $(document).ready(function() { //When page loads... $(".tab_content").hide(); //Hide all content $("#tabs a:first").addClass("active").show(); //Activate first tab $(".tab_content:first").show(); //Show first tab content //On Click Event $("#tabs a").click(function() { $("#tabs a").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 rel attribute value to identify the active tab + content $(activeTab).fadeIn(); //Fade in the active content return false; });