Hello, I don't know if 'im doing a logical or syntaxic error in the script :
http://mootools.net/shell/zEAam/3/ I want to check if there is a div with a class="menu-page-item- active" If so, I'm getting the id number of the div and apply it to open a accordion at the right position. If not, i want the accordion without the display option. It's working for the first part (if the class exists, the display is correct) but the "else" statement of my function never happens (I tried with a simple alert(); who never did triggers). To check it, you have to remove the "-active" from the class="menu- page-item-active" of the second div from the start. Then you will see there is no accordion at all. What I don't understand is that the "if" part of the test is working, but not the "else" ? Thank you for you help. -- To unsubscribe, reply using "remove me" as the subject.
