Or apply an ID instead of a class to the div(s)...maybe too simple of
an answer, but if you can't/won't change the divs to IDs then
FrenchiNLA's suggestions should be fine.

On Apr 2, 11:21 am, FrenchiINLA <[EMAIL PROTECTED]> wrote:
> you need to get the sibling of your see-more class somethig like :
> $(this).siblings(".news_complete")slideDown(1000);
> should work for you
>
> On Apr 1, 9:04 pm, Brandnew <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > I hope I'm more or less clear in my title.
>
> > I have this problem :
>
> > I have several DIVs which contains different infos (the content of
> > them is coming from a DB).
>
> > Exemple :
>
> > <div class="news">
> >     <a class="see_more" href="">See more</a>
> >     CONTENT CONTENT
> >              <div class="news_complete" style="display:none;">
> >                  HIDDEN CONTENT HIDDEN CONTENT
> >               </div>
> > </div>
>
> > When i click on See more, I have a small Jquery command :
>
> > $(document).ready(function(){
> >                         $('.see_more').click(function(){
>
> >                                 $('.news_complete').slideDown(1000);
>
> >                                 return false;
> >                         });
>
> > });
>
> > So basically, the user is able to choose if he wants to see the
> > complete content of one DIV. My problem is that with the way I coded
> > it, when I click on the link "See more", it opens all my DIV where
> > there is a 'class="news_complete"', not just the one where I clicked
> > "See more".
>
> > I tried several different options, using ID and class, trying to have
> > an attribute in the DIV with the ID of the news. But nothing works so
> > far.
>
> > Could you help me to finish that ?
>
> > Thank you a lot !
>
> > Ced

Reply via email to