Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8861563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:31:09+00:00 2026-06-14T15:31:09+00:00

I apologize for the noob question but I really can’t find the solution to

  • 0

I apologize for the noob question but I really can’t find the solution to this.

I’ve got a link that when clicked toggle’s a ul.

$("#pastShows").click(function () {
$(".shows").toggle("slow");
});
​

<h3 id="pastShows"><a href="javascript:void(0)">Past</a></h3>
<div class="shows">
  <ul>
    <li>Show 1</li>
    <li>Show 2</li>
    <li>Show 3</li>
    <li>Show 4</li>
  </ul>
</div>​

It works perfect in this fiddler. http://jsfiddle.net/Chadimoglou/NG8Dj/2/

But I can’t get it to work when implemented here http://www.kiirstinmarilyn.com/#shows

Thank you kindly for the help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T15:31:10+00:00Added an answer on June 14, 2026 at 3:31 pm

    Ok, the issue here’s you are using window.onload, in place of the document.ready() or $(function() {}. jQuery’s document.ready() method gets called as soon as DOM is ready (means browser has parsed the HTML and built the DOM tree). If your web page has large images, it will not wait for loading of images completely. Hence it may called before window.onload method. We can have multiple document.ready() methods on a web page that will be called in coming sequence. On the other hand, window.onload method gets called when images and all associated resources of the page have been fully loaded. Suppose your web page has large size images then until all the images are not fully loaded on the page, window.onload method will not called.

    So, just replace the code:

    window.onload=function(){
        $("#pastShows").click(function () {
            $(".shows").toggle("slow");
        });
    }
    

    with:

    $(function()
    {
        $("#pastShows").click(function () {
          $(".shows").toggle("slow");
        });
    }
    

    Hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I apologize if this is a noob question, but I can't seem to figure
I apologize if this is a super noob question, but I can't seem to
This might be a noob question but I can't find anything wrong with my
I apologize in advanced if this is somewhat of a noob question but I
Hey guys, I can only apologise for asking such a noob question, but this
Apologies for this question but I am a bit of a noob with Delphi.
Apologies if this is a slightly noob question, but looking to clarify my thoughts
I apologize for this seemingly relatively simple task that I can't figure out. I
I apologize for the newb question but have not found a solution online. I
Apologies for this basic question, but I am noob stumped. The below code works

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.