## Relative Queries #### get(position) ~ [api.jquery.com/get](http://api.jquery.com/get/) ``` html
``` ``` js $('div').get(3) // returns
``` returns the HTMLElement in given `position` #### eq(position) ~ [api.jquery.com/eq](http://api.jquery.com/eq/) ``` html
``` ``` js $('div').eq(3) // returns [
] ``` returns a [`collection`](#foot-notes) with only one element, specified by `position`, if is lower than 0 it will count backwards from the last element #### first() ~ [api.jquery.com/first](http://api.jquery.com/first/) ``` html
``` ``` js $('div').first() // returns [
] ``` returns a [`collection`](#foot-notes) with only the last element #### last() ~ [api.jquery.com/last](http://api.jquery.com/last/) ``` html
``` ``` js $('div').last() // returns [
] ``` returns a [`collection`](#foot-notes) with only the last element #### find(selector) ~ [api.jquery.com/find](http://api.jquery.com/find/) ``` html ``` ``` js $('ul').find('.foo') // returns [ //
  • //
  • //
  • ``` returns a [`collection`](#foot-notes) with elements that matches the `selector` from the given [`collection`](#foot-notes) #### closest(selector) ~ [api.jquery.com/closest](http://api.jquery.com/closest/) ``` html ``` ``` js $('li').closest('.foo') // returns [ // // // ] ``` returns a [`collection`](#foot-notes) with elements that matches the `selector` within the parents of the elements in the given [`collection`](#foot-notes) - [x] [`prev()`](http://api.jquery.com/next/) - [x] [`prevAll()`](http://api.jquery.com/next/) - [x] [`next()`](http://api.jquery.com/next/) - [x] [`nextAll()`](http://api.jquery.com/next/) - [x] [`parent()`](http://api.jquery.com/parent/) - [x] [`children()`](http://api.jquery.com/children/) > > collection: jqlite object returned by a query and find/filter like functions