I'm building an ajax-y search form. As the user types, the results are displayed (Google Suggestions-ish). That part is working properly, so now I'm adding little animations with jQuery. This is where my question comes in:
I would like to animate the <div> containing the search results to vertically expand to accomodate the incoming results, then fade in the results.
So, is there a way to calculate the vertical height of the search results list (a <ul>) before displaying it, so that I know what height to animate the <div> to before the <ul> fades in?
I would like to animate the <div> containing the search results to vertically expand to accomodate the incoming results, then fade in the results.
So, is there a way to calculate the vertical height of the search results list (a <ul>) before displaying it, so that I know what height to animate the <div> to before the <ul> fades in?