From: John Resig Date: Tue, 9 Jan 2007 15:44:24 +0000 (+0000) Subject: Fixed .next() and .prev(). X-Git-Tag: 1.1b~26 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=609dec9a78ac98e69b67a73989d8437f67c6d33a;p=jquery.git Fixed .next() and .prev(). --- diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index ee65edbb1..4a05ee537 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -1818,8 +1818,8 @@ new function() { jQuery.each({ parent: "a.parentNode", parents: "jQuery.parents(a)", - next: "jQuery.nth(a,1,'nextSibling')", - prev: "jQuery.nth(a,1,'previousSibling')", + next: "jQuery.nth(a,2,'nextSibling')", + prev: "jQuery.nth(a,2,'previousSibling')", siblings: "jQuery.sibling(a.parentNode.firstChild,a)", children: "jQuery.sibling(a.firstChild)" }, function(i,n){