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

The Archive Base Latest Questions

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

I have a one <div> with links in it and another <div> below the

  • 0

I have a one <div> with links in it and another <div> below the first one.

I want the first one to disappear, so that:

  • the second <div> does not move. So the jQuery function .hide() is not what I look for.
  • the links become inactive in the first div.

Is it possible to do that, using javascript or jQuery ?

PS : if it is not possible, I am interested of the other option where :

  • the first <div> hides.
  • the second <div> moves gradually.

Thank you,

Colas

edit 2 :

You can look at this fidle http://jsfiddle.net/XKMEp/5/ to see what I tried to do.

edit : Here my attempts

$("#div1").click(function() {       
    /*actus.fadeOut('slow');*/
    actus.fadeTo(1000,0).delay(1001).style.visibility = 'hidden';
    $('input,textarea,select,a', '#div1').attr("disabled", true);
});

even this does not work :

$("#div1").click(function() {       
    /*actus.fadeOut('slow');*/
    actus.fadeTo(1000,0).delay(1001).style.visibility = 'hidden';
    $('input,textarea,select,a', '#div1').attr("disabled", true);
});

And let’s say my html code is :

<div class="container">
    <div id="div1"></div>
</div>
    <div class="container">
<div id="div2"></div>
</div>


.container{width:300px;height:300px;}
  • 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-13T18:14:19+00:00Added an answer on June 13, 2026 at 6:14 pm

    Fixed… wasn’t giving up. Yes it needs to be the opacity (well fade to opacity for cross browser) to keep the position but one line of jquery does it. http://jsfiddle.net/calder12/XKMEp/24/

    All you have to do is change the fermer to a tags instead of divs and restyle them a bit to get them where you had them.

        $(".fermer").click(function() {
        $(this).closest('div').fadeTo('slow',0);
        });
    ​
    
         <a href="#" class="fermer">
             fermer
         </a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have multiple html documents that share one css stylesheet (not multiple page div
I have a set of 28 links in a wrapper div element. Each one
I have two divs one inside another, i would like to overlap one div
I have a function in Javascript that moves one div depending on the mouse
How to wrap one div around another? I have following two div ids: #course
I have a series of links nested within a div. When one of those
I have copied Jquery code from another website and Link one is working fine.
I have the code below working like a charm: var div = $('#div'); div.html('<div>one
I have a div with links in it. And I'm lining them up one
I have a function that requires some vars being appended to a div. One

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.