jQuery Tree Traversal        drake
.children() v.s .find()
.parents() v.s .closest()
$(‘li.item-a’).closest(‘ul’)$(‘li.item-a’).parents(‘ul’)$(‘li.item-a’).closest(‘li’)$(‘li.item-a’). parents(‘li’)
.siblings()
.next() v.s .nextAll() v.s      nextUntil()
.prev() v.s .prevAll() v.s      .prevUntil()
.prevUntil() v.s parentsUntil()
20120601_jquery tree traversal_drake
20120601_jquery tree traversal_drake
Upcoming SlideShare
Loading in …5
×

20120601_jquery tree traversal_drake

347 views
315 views

Published on

20120601_jquery tree traversal_drake

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
347
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

20120601_jquery tree traversal_drake

  1. 1. jQuery Tree Traversal drake
  2. 2. .children() v.s .find()
  3. 3. .parents() v.s .closest()
  4. 4. $(‘li.item-a’).closest(‘ul’)$(‘li.item-a’).parents(‘ul’)$(‘li.item-a’).closest(‘li’)$(‘li.item-a’). parents(‘li’)
  5. 5. .siblings()
  6. 6. .next() v.s .nextAll() v.s nextUntil()
  7. 7. .prev() v.s .prevAll() v.s .prevUntil()
  8. 8. .prevUntil() v.s parentsUntil()

×