Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sophiebits/jquery-genealogy
A fun plugin so your elements can have their proper family reunions.
https://github.com/sophiebits/jquery-genealogy
Last synced: about 2 months ago
JSON representation
A fun plugin so your elements can have their proper family reunions.
- Host: GitHub
- URL: https://github.com/sophiebits/jquery-genealogy
- Owner: sophiebits
- License: mit
- Created: 2011-06-29T02:48:15.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-01-05T21:15:30.000Z (almost 12 years ago)
- Last Synced: 2024-11-02T01:50:27.698Z (about 2 months ago)
- Language: JavaScript
- Homepage: https://github.com/spicyj/jquery-genealogy
- Size: 111 KB
- Stars: 97
- Watchers: 8
- Forks: 15
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jQuery Genealogy
A _fun_ jQuery plugin for your (or for your element's) extended relatives.
## Supported Methods
- **el.grandchildren()**
All of the element's children's children.
- **el.greatGrandchildren()**
All of the element's grandchildren's children.
- **el.grandparent()**
The element's parent's parent.
- **el.greatGrandparent()**
The element's grandparent's parent.
- **el.aunts(), el.uncles()**
All of the element's parent's siblings.
- **el.prevAunt(), el.prevUncle()**
The element directly before the element's parent.
- **el.prevAunts(), el.prevUncles()**
All of the element's parent's siblings that come before the element in the document, returned in reverse document order (closest to the original element first).
- **el.nextAunt(), el.nextUncle()**
The element directly after the element's parent.
- **el.nextAunts(), el.nextUncles()**
All of the element's parent's siblings that come after the element in the document, returned in document order (closest to the original element first).
- **el.cousins()**
All of the element's aunts and uncles's children.
- **el.prevCousins()**
All of the element's aunts and uncles's children that come before the element in the document, returned in reverse document order (closest to the original element first).
- **el.nextCousins()**
All of the element's aunts and uncles's children that come after the element in the document, returned in document order (closest to the original element first).
- **el.nieces(), el.nephews()**
All of the element's siblings' children.
- **el.prevNieces(), el.prevNephews()**
All of the element's siblings' children that come before the element in the document, returned in reverse document order (closest to the original element first).
- **el.nextNieces(), el.nextNephews()**
All of the element's siblings' children that come after the element in the document, returned in document order (closest to the original element first).
### Less-Useful Methods Provided for Consistency
- **el.brothers(), el.sisters()**
All of the element's siblings.
- **el.father(), el.mother()**
The element's parent.
## About
Inspired by one of John Resig's offhand remarks.
Please submit bug reports on GitHub issues or send me a note at [email protected] if you have any questions or feature suggestions.