[jQuery] Re: Toggle Only the below the on click

2008-09-25 Thread Stinhambo
I didn't realise .nextAll existed! I was using this - $("dt.solution").click(function() { // This is for toggling multiple dd elements var obj = $(this).next(); // when you click dt.solution while (obj.is("dd")) { // it

[jQuery] Re: Toggle Only the below the on click

2008-09-19 Thread BB
$(".stripes dt").click(function(){ $(this).find("dd").toggle("slow"); }); On 19 Sep., 05:24, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > This is probably a noob question but... > > I have a bunch of definition lists on a page with the same class so > that I can stripe every other in the l

[jQuery] Re: Toggle Only the below the on click

2008-09-19 Thread [EMAIL PROTECTED]
This worked perfectly! I thought it was probably something using 'next.' Thanks for the help! On Sep 19, 4:58 am, tobaco <[EMAIL PROTECTED]> wrote: > try it this way: > > > $(function(){ >         $('[EMAIL PROTECTED]"http://";]').attr('target', '_blank');

[jQuery] Re: Toggle Only the below the on click

2008-09-19 Thread tobaco
try it this way: $(function(){ $('[EMAIL PROTECTED]"http://";]').attr('target', '_blank'); $('[EMAIL PROTECTED]"https://";]').attr('target', '_blank'); $(".stripes dd").hide(); $(".stri