$(".classa").click(function () {
$(this).parent().next(".classdiv").toggle();
});
FrenchiINLA wrote:
Thank you for the reply. I would like to show hide the div located
right after the h3 when a.classa is clicked, and not all other
div.classdiv
Try:
$(this).parent().next().toggle();
Maurício
-Mensagem Original-
De: FrenchiINLA
Para: jQuery (English)
Enviada em: quarta-feira, 17 de junho de 2009 18:16
Assunto: [jQuery] First Parent Siblings
I have several following html code:
Thank you for the reply. I would like to show hide the div located
right after the h3 when a.classa is clicked, and not all other
div.classdiv located on other lines. Thanks again
On Jun 17, 2:19 pm, waseem sabjee wrote:
> do you want to toggle the class on the div or toggle a transition like
>
do you want to toggle the class on the div or toggle a transition like
slideToggle or fadeToggle ?
On Wed, Jun 17, 2009 at 11:16 PM, FrenchiINLA wrote:
>
> I have several following html code:
>
4 matches
Mail list logo