JQuery Reduce and develop code


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


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 ?


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.