JQuery Reduce and develop code

advertisements

I want to expand boxes on click. For some reason, the code doesn't work.

http://jsfiddle.net/9UJ7f/1/

PS: I also want the expand to be animated, what do you think is the best way to do this ? Maybe checking for "expand" and then do an .animate ?

Thx


I assume that you want the header to stay and the content below to expand/collapse. I think you might want a different approach. jQuery has built in hide() and show(). If you include "fast" or "slow" as arguments, it will add animations.