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
> -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
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
Hi Karl,
Thanks for your great help. It worked.
Best Regards
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ü" <[
Thank you very much James, "this" makes sense, I am going to
investigate it.
Your help is very apreciated.
Best Regards
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
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
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(){
//
> -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
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
11 matches
Mail list logo