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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:16:01+00:00 2026-05-27T05:16:01+00:00

Check this code. <li>one <a href=# class=opt>delete</a> <div class=popup> <span class=tip></span><a href=# class=btn>deletebutton</a></div> </li>

  • 0

Check this code.

<li>one <a href="#" class="opt">delete</a>
        <div class="popup">
            <span class="tip"></span><a href="#" class="btn">deletebutton</a></div>
    </li>

code used to hide/show div.popup

$('.opt').live('click', function(e) {
    e.preventDefault();
    $(".popup").slideUp();
    $(this).closest("li").find(".popup").stop(true, false).slideToggle();
});

In click delete to open each div.popup but second click on the opened div.popup makes the span.tip to disappear. It does not appear anymore without refreshing page.

$(".popup").slideUp();

I found the problem is due to this code. I’m using this code to hide all other opened .popup on click of any delete anchor. I’m new to jQuery. Can anyone suggest an alternative method to hide div.popup siblings on click on any.

Thanks..

  • 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-05-27T05:16:02+00:00Added an answer on May 27, 2026 at 5:16 am

    The problem is that during slideToggle jQuery is changing the popup element to have “overflow-x: hidden” thus the tip element, which is outside of the bounds stays hidden. I made an update to the jsfiddle so that it includes the tip element inside of the popup div. The animation looks a little different but I’m sure you can get it to look like it used to with a little finessing. http://jsfiddle.net/6vKct/5/ (I changed the tip to have a blue background so that it’s more visible)

    I changed

    • the popup div top from “20px” to “15px”
    • the tip div top from “-5px” to “0px”
    • made the btn element relative positioned
    • moved the btn element down by setting the top to “5px”
    • moved the background color style from the entire popup div to just the btn

    In effect I just made the popup div larger, moved it up and moved the tip inside of it.

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

Sidebar

Related Questions

I got this code in one of my methods. It should check if the
I've used this code to get one checkbox saved for when the user returns,
Check this code (My Custom Keyboard): -(IBAction) updateTextBackSpace:(id)sender { if([txtview.text length]>0) { NSString *deletedLastCharString
Please check this code out it compiles and runs absolutely fine.. The question is
First check out this code. I seems like it should work for me, but
With this code I can check the caret position in a textarea in firefox:
I found this code for alphanumeric check (Letters, numbers, spaces or underscores) but I
How can I rewrite this code to check for all characters including the swedish
Hi all I have this code to check if an item from a textbox
I am using this code to check that array is present in the HashMap

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.