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 8879017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:51:13+00:00 2026-06-14T19:51:13+00:00

I built in a jQuery collapsible plugin into my fixed header. (You can click

  • 0

I built in a jQuery collapsible plugin into my fixed header. (You can click the button in the right upper corner to open it)

My problem is as following, when I open the page, reload or click on a link it automatically opens for a second. I would like it stops doing that and instead only opens when someone actually clicks on the button.

I don’t know which part of my code to add here so I uploaded both files.

Here is the code to the php file

Here is the code to the jQuery file

I’m sorry for the inconvenience. I am new to this website and I just started building my own website but I’m willing to learn.

Regards

  • 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-14T19:51:15+00:00Added an answer on June 14, 2026 at 7:51 pm

    Try setting the container that holds the content to display:none in your css file to begin with.

    Then when the button is clicked change the display value. You may not need to change the display value here as the jQuery which activates and shows it just now may work fine.

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

Sidebar

Related Questions

I can write something, I'm asking if something is already built into jQuery.
I have built this accordion using the jquery ui accordion plugin, I sort of
Good afternoon people's I have built a jquery plugin that I use on my
Duplicate: Serializing to JSON in jQuery It seems there's a JSON serializer/deserializer built into
Does jQuery have built in JSON support or must I use a plugin like
This seems like something neat that might be built into jQuery but I think
I have a page built with jQuery mobile with header markup that looks like
I built a jquery plugin to which I'm passing the ID of an HTML
I've built a JQuery plugin that will apply to a page built in a
I am using Jquery buttons set, which is built into Jquery UI. And selectmenu

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.