Inside your click handler:
$(this).parent().next();

In the future a question like this would be better suited for this mailing list:
http://groups.google.com/group/jquery-en

--John



On Tue, Jan 13, 2009 at 11:56 PM, Ajay <matharua...@yahoo.co.in> wrote:
>
> Hi,
>
> I have a requirement in which I need to access the next element.
> like
> <div class="a">
>   <div class="b">
>      <div class="e"></div>
>   </div>
>   <div class="c"></div>
> </div>
>
> Now this structure is repeated,
>
> what what I want is on click of "e" I need to toggle appearance of "c"
> based on which "e" has been clicked because this structure is
> repeating I can not specify Id to div's.  so how can I get this
> functionality?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to