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.
Then, but it in the callback function of the
slideDownorslideUp, for example like:Demo
Notice that it will give you the same height 38 in the two cases the
slideDownand theslideUp, becouse the two functions don’t change the height property of thediv, but only thedisplayproprty fromnonetoblock, so the div#content‘s height property is the same after slideing down as it’s height before.