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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:40:33+00:00 2026-05-29T04:40:33+00:00

Code in here: jsfiddle Demo I wanna to get the div#content height when it

  • 0

Code in here: jsfiddle Demo

I wanna to get the div#content height when it finish the action of slider down/up.

For example, in demo, I type some words, they make the div height is 36px, so if I click slider down, I need get the value 36, and if I click slider up, I need return the value 0. 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-29T04:40:34+00:00Added an answer on May 29, 2026 at 4:40 am

    Then, but it in the callback function of the slideDown or slideUp, for example like:

     $('#content').slideDown('slow', function(){
            var height = $(this).height();
      }); 
    

    Demo

    Notice that it will give you the same height 38 in the two cases the slideDown and the slideUp, becouse the two functions don’t change the height property of the div, but only the display proprty from none to block, so the div #content‘s height property is the same after slideing down as it’s height before.

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

Sidebar

Related Questions

Here's some code to illustrate the problem I'm running into. jsFiddle Demo <div class=normal>
i have this jquery slider code here - jsfiddle or jquery demo now all
I found this count down timer code here http://jsfiddle.net/QH6X8/ I would like to make
i have this example found here: http://threedubmedia.com/code/event/drag/demo/resize2 and i tried to reproduce it in
jquery how to addClass to all the ul.menu li:first.selection ? demo code here: http://jsfiddle.net/NkbDY/
I've built a simple dropdown menu. The code and demo is here: http://jsfiddle.net/3Lq2d/5/ It
I have this code here, which is intended to allow any type of arguments:
Trying to truncate some code here and running into a problem: <script type=text/javascript> $(function()
I have come across an interesting code example that allows me to make DIV
this is my code: <div id=a style=position:absolute;width:200px;height:200px;background:red;word-wrap:break-word;> <div id=b style=width:50px;height:50px;background:blue;></div> </div> the script is

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.