What I need is some ‘toggleDown’ function for animate.
I know there is a .slideDown() but this just won’t work the way I want.
I need the div to expand from the current height to the full height (full height=normal height ob the div)!
$("div#one").animate({height: "toggleDown"}, 100); // something like that
Thx in advance
This is not directly possible currently. jQuery needs to know the final numeric height in order to be able to correctly animate an element w.r.t height. The
normalorautoheight as you mentioned is something that is determinable only after the DIV is rendered. At best, you can make an invisible clone (withvisibility: hidden, NOTdisplay: none) of your DIV, get its computed height and use that to animate your actual DIV.