View Full Version : animated colapible div problem

Alan Emmins
09-13-2007, 08:18 AM
1) Script Title: Animated Collapsible DIV

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm

3) Describe problem: I am using example 2 and trying to use several collapsible divs, but not matter which one I click, say a, b, c, or d, it is always the last div that opens and collapses. I have tried a bunch of things and scanned the threads but didn't see any mention of the same problem.

The page I am working on is: http://www.editred.com/writerplus.php

Any ideas?


09-13-2007, 08:45 AM
The variable:

var collapse2

needs to be unique as far as its name for each animated div instance on your page, so something like "collapse1" for the first DIV, "collapse2" for the second etc.

Alan Emmins
09-13-2007, 09:25 AM
but thanks all the same, all cleared up now.