Hey Everyone

I wonder if someone can help. I have a sliding div that is used a few
times on a page, which has the same mark up, but uses .class
selectors. When i click on the <a> it makes the hidden part of the div
slide down, but at the moment it makes all of them slide on the page,
because it is targeting the same class.

So what i want to do is have it so only one slides at a time. I have
had a look around, but i am new to jQuery, so i am trying to learn as
i go along. What i was thinking was that i would have to make the div
that is selected a parent, so all the others become the children, and
i can tell them to stay hidden, until they are clicked so they become
the parent? Would this be the best way to go about it, or is there a
much easier way, and if so, what mark up would i have to use.

Thank you to anyone that can help :)

Reply via email to