Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 26th, 2012  |  syntax: None  |  size: 0.21 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. jquery: Finding the last child from a selector
  2. var $myNeeds = $('.history');
  3.        
  4. $myNeeds.find('>:last-child')
  5.        
  6. $myNeeds.children().last()
  7.        
  8. $('.history > :last-child')
  9.        
  10. $myNeeds.children(":last")