[jQuery] Re: A Beginner Question

2008-01-23 Thread Karl Swedberg
Hey Jim, It was documented on the jQuery 1.2 roadmap, but it didn't make it into core for the 1.2 release (unlike nextAll(), wrapInner(), wrapAll(), etc.). Not sure why, but so it goes. http://docs.jquery.com/JQuery_1.2_Roadmap#.nextUntil.28.29_.2F_.prevUntil.28.29 The roadmap links to th

[jQuery] Re: A Beginner Question

2008-01-23 Thread Priest, James (NIH/NIEHS) [C]
> -Original Message- > From: Karl Swedberg [mailto:[EMAIL PROTECTED] > > You could use John Resig's .nextUntil() method. Karl - is that documented anywhere on the jQuery site - or any plans to incorporate that into the core? I saw a reference of that somewhere yesterday (maybe on your

[jQuery] Re: A Beginner Question

2008-01-22 Thread Hamish Campbell
nextAll behaves differently from nextUntil On Jan 23, 12:34 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > Karl Swedberg schrieb: > > > Hi Volkan, > > > You could use John Resig's .nextUntil() method. > > Not 100% sure, but afaik nextUntil is included in jQuery 1.2 as > nextAll:http://docs.jque

[jQuery] Re: A Beginner Question

2008-01-22 Thread Volkan Görgülü
Hi Karl, Thanks for your great help. It worked. Best Regards

[jQuery] Re: A Beginner Question

2008-01-22 Thread Cloudream
Item Group A Item 1 Item 2 Item Group B Item 1 Item 2 Item 3 $(document).ready(function(){ $("dt > a").click(function(){$ (this).parent().parent().find("dd").toggle(); return false;}); }); a little hard for your code, so i change the html =P On Jan 23, 1:37 am, "Volkan Görgülü" <[

[jQuery] Re: A Beginner Question

2008-01-22 Thread Volkan Görgülü
Thank you very much James, "this" makes sense, I am going to investigate it. Your help is very apreciated. Best Regards

[jQuery] Re: A Beginner Question

2008-01-22 Thread Hamish Campbell
Here's how you do it (tested and working): Item Group A Item 1 Item 2 Item Group B Item 1 Item 2 Item 3 $(document).ready(function() { $('dt').click(function() { var obj = $(this).next(); while (obj.is('dd')) { obj.toggle(); o

[jQuery] Re: A Beginner Question

2008-01-22 Thread Jörn Zaefferer
Karl Swedberg schrieb: Hi Volkan, You could use John Resig's .nextUntil() method. Not 100% sure, but afaik nextUntil is included in jQuery 1.2 as nextAll: http://docs.jquery.com/Traversing/nextAll Maybe someone can confirm that. Jörn

[jQuery] Re: A Beginner Question

2008-01-22 Thread Karl Swedberg
Hi Volkan, You could use John Resig's .nextUntil() method. Drop this in your js file somewhere... / next until > / $.fn.nextUntil = function(expr) { var match = []; // We need to figure out which elements to push onto the array this.each(function(){ //

[jQuery] Re: A Beginner Question

2008-01-22 Thread Priest, James (NIH/NIEHS) [C]
> -Original Message- > From: Volkan Görgülü [mailto:[EMAIL PROTECTED] > > What I want to achieve is whenever I click an tag in I want > to show tags inside the clicked Look at your code - you are saying "when I click a DT" do toggle... but you aren't defining which dt. So of cour

[jQuery] Re: A Beginner Question

2008-01-22 Thread tlob
try to use IDs/classes in the DDs. just an Idea cheers tl On Jan 22, 6:37 pm, "Volkan Görgülü" <[EMAIL PROTECTED]> wrote: > Hi, > > Lets say I have a Definition List like shown below. > > > Item Group A > Item 1 > Item 2 > Item Group B > Item 1 > Item 2 > Item 3 > > > What I want to achieve