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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:19:09+00:00 2026-06-06T05:19:09+00:00

Ive got a div thats hidden with .hide and on click opens using .show(slide,

  • 0

Ive got a div thats hidden with .hide and on click opens using .show("slide", { direction: "left" }, 1000); which all works fine, inside of that ive got button that on click triggers the div to be hidden, this is done using

$('.hide-content').click(function () {
     $(".slide-out").hide("slide", {
         direction: "left"
     }, 1000);
});

it works, but once its hidden it opens again and then closes really quickly.. its really odd as i cant see that theres any js causing it.

ive made a fiddle of the problem here – http://jsfiddle.net/vUZuY/ – to replicate it : click OPEN then scroll to the bottom of the opened div and hit hide and you’ll see how it bounces back open after it closes.

  • 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-06T05:19:10+00:00Added an answer on June 6, 2026 at 5:19 am

    Ok, I noticed two problems with this:

    1. You were re-binding the hide event every time you opened the div. It looks like you’re loading from another source, though, so this might be fine in your actual implementation.
    2. Real Issue: In your markup, you have the “Close” link within and a paragraph within them. Both have the class “hide-content” — so you’ve set it up to fire this event twice. (Once when the is clicked and once when the

      is clicked);

    I made a quick edit to your fiddle: http://jsfiddle.net/vUZuY/2/ by giving the a unique id and binding to that.

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

Sidebar

Related Questions

Ive got the following html setup: <div id=div1> <div id=content1>blaat</div> <div id=content1>blaat2</div> </div> it
So I've got this @Html.DropDownList(Thangs) inside of a hidden div. When the user clicks
Hi guys i have a div box with text which is hidden until you
I've got a div needs to show the first three items in a list,
I've got a popup menu div that is shown and hidden with the following
I've got Div element which is 1680px wide, like this: | | Say, the
Ive got 3 radio button. *if Email button is clicked will only show the
I've got a div that is hidden on page load and stretches to 100%
I've got this php code that works perfectly: preg_match_all( '/<div style=display:block; float:left; height:240px; width:150px;'
Ok so Ive got this Javascript file, simply: $(document).ready(function() { $('.status').prepend(<div class='score_this'>(<a href='#'>score this

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.