javascript - jQuery make divs the same height on click -


i've got problem can @ here http://jsfiddle.net/dng2p/4/

if click detail button shows information , if click "points statement" button slides layer down.

my problem i'm trying make main booking details div same height points div if it's bigger , when click close put main booking details height originally.

it's half working main booking details div becomes same height points div doesn't go originally

can help?

thanks

jamie

how's this? http://jsfiddle.net/dng2p/8/

all did wrong failing keep original height around properly. declared bookingdetailheight local variable means got re-declared every toggle, , removed after every toggle complete. tied original height dom element using .data(), simplifies things when might have people opening 2 of toggles simultaneously.

i got on roll though, tidied bit , made outer animate along inner. oh , please proper traversal methods in jquery, parent().parent().parent().find() asking trouble. think there's left in parts didn't at.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -