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

  • Home
  • SEARCH
  • 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 289519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:54:51+00:00 2026-05-12T05:54:51+00:00

why is the height value of the test div the same before and after

  • 0

why is the height value of the test div the same before and after the hide animation?

$(document).ready(function() {        
    $("#test").hide("slow", function() {  
       alert($("#test").height());  
   });
});

<div id="test">
    test
    <br />
    test
    <br />
    test
</div>
  • 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-12T05:54:52+00:00Added an answer on May 12, 2026 at 5:54 am

    I’m not completely sure on how the hide() animation works exactly, but if it does change the stlye-size of the element to achieve the shrinking effect, it probably reverts that to the original size after the animation is done.

    The way jQuery really hides things is by setting one of the css styles which hides an element (I think it just sets display: none;). The animation is just some fancy effects that don’t really permanently change the element.

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

Sidebar

Related Questions

this is my code : <div id=test style=width:200px;height:100px;background:red class=tabs change_font_size> <div> <a class=delete style=float:right;font-size:20px;text-decoration:underline;cursor:pointer;>delete</a>
I have a div with a set height of 200, and sometimes there's enough
How can I calculate the width and height of a <div> element, so as
I have a container div with a fixed width and height , with overflow:
I have Divs show and hide (with an animation) using the following script (I
I have the following HTML: <div style=width: 143px; height: 125px; overflow: scroll;><select size=20 style=min-width:
The line-height property usually takes care of vertical alignment, but not with inputs. Is
When I specify a height in the style for any element inside of this,
I need to set the height of every textbox on my form, some of
I need to grab the height of the window and the scrolling offset in

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.