Skip to content

Commit

Permalink
readme: selector is optional for closest()
Browse files Browse the repository at this point in the history
  • Loading branch information
fb55 committed May 12, 2013
1 parent 2dc34ee commit 6f631d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ $('.orange').parents('#fruits').length
// => 1
```

#### .closest(selector)
#### .closest([selector])
Get the closest element that matches the selector by searching through the element and the elements parents.

```js
Expand Down

0 comments on commit 6f631d2

Please sign in to comment.