Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
8192bd8e
Commit
8192bd8e
authored
Jul 13, 2006
by
Yehuda Katz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Commented parent, ancestors, parents, next, prev, and siblings.
Previously commented filter, not, and add
parent
470a807d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
87 additions
and
0 deletions
+87
-0
jquery.js
jquery/jquery.js
+87
-0
No files found.
jquery/jquery.js
View file @
8192bd8e
...
@@ -764,9 +764,96 @@ new function() {
...
@@ -764,9 +764,96 @@ new function() {
* @param String expr An expression to filter the ancestors with
* @param String expr An expression to filter the ancestors with
*/
*/
ancestors
:
jQuery
.
parents
,
ancestors
:
jQuery
.
parents
,
/**
* A synonym for ancestors
*/
parents
:
jQuery
.
parents
,
parents
:
jQuery
.
parents
,
/**
* Get a set of elements containing the unique next siblings of each of the
* matched set of elements.
*
* It only returns the very next sibling, not all next siblings.
*
* @example $("p").next()
* @before <p>Hello</p><p>Hello Again</p><div><span>And Again</span></div>
* @result [ <p>Hello Again</p>, <div><span>And Again</span></div> ]
*
* @name next
* @type jQuery
*/
/**
* Get a set of elements containing the unique next siblings of each of the
* matched set of elements, and filtered by an expression.
*
* It only returns the very next sibling, not all next siblings.
*
* @example $("p").next(".selected")
* @before <p>Hello</p><p class="selected">Hello Again</p><div><span>And Again</span></div>
* @result [ <p class="selected">Hello Again</p> ]
*
* @name next
* @type jQuery
* @param String expr An expression to filter the next Elements with
*/
next
:
"a.nextSibling"
,
next
:
"a.nextSibling"
,
/**
* Get a set of elements containing the unique previous siblings of each of the
* matched set of elements.
*
* It only returns the immediately previous sibling, not all previous siblings.
*
* @example $("p").previous()
* @before <p>Hello</p><div><span>Hello Again</span></div><p>And Again</p>
* @result [ <div><span>Hello Again</span></div> ]
*
* @name prev
* @type jQuery
*/
/**
* Get a set of elements containing the unique previous siblings of each of the
* matched set of elements, and filtered by an expression.
*
* It only returns the immediately previous sibling, not all previous siblings.
*
* @example $("p").previous("selected")
* @before <div><span>Hello</span></div><p class="selected">Hello Again</p><p>And Again</p>
* @result [ <div><span>Hello</span></div> ]
*
* @name prev
* @type jQuery
* @param String expr An expression to filter the previous Elements with
*/
prev
:
"a.previousSibling"
,
prev
:
"a.previousSibling"
,
/**
* Get a set of elements containing all of the unique siblings of each of the
* matched set of elements.
*
* @example $("div").siblings()
* @before <p>Hello</p><div><span>Hello Again</span></div><p>And Again</p>
* @result [ <p>Hello</p>, <p>And Again</p> ]
*
* @name siblings
* @type jQuery
*/
/**
* Get a set of elements containing all of the unique siblings of each of the
* matched set of elements, and filtered by an expression.
*
* @example $("div").siblings("selected")
* @before <div><span>Hello</span></div><p class="selected">Hello Again</p><p>And Again</p>
* @result [ <p class="selected">Hello Again</p> ]
*
* @name siblings
* @type jQuery
* @param String expr An expression to filter the sibling Elements with
*/
siblings
:
jQuery
.
sibling
siblings
:
jQuery
.
sibling
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment