Ok, this is what i wrote in my page but the problem is:
When i click on a “Menu”, the “Item” should SlideDown and when i click back on the same “Menu” it should SlideUp! this works correctly, but what, if i click on a “Item” instead of a “Menu”?! The clicked “Menu” SlideUp! What’s wrong with it? I just want to SlideUp/Down when i click on a “Menu” and not when i click on a “Item”!
I have to say that i’m not a good coder in jQuery and probably i missed some classes to do it! but i would like to learn it aswell, reading some books and tutorials!
Because that’s how a CSS selector works.
If you use a CSS selector to say that all paragraphs in the footer should be green, that affects all of the paragraphs in the footer, no matter how deeply nested they are, not just those that are direct descendants of the footer itself.
See my previous post about using > to select only direct descendants.