Skip to content

Commit ffb9496

Browse files
author
Markus Amalthea Magnuson
committed
Fix Selecing -> Selecting and space after //
1 parent f216fa6 commit ffb9496

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

page/using-jquery-core/traversing.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,17 @@ $("div.grandparent").find("div");
6969
The rest of the traversal methods within jQuery all deal with finding sibling selections. There are a few basic methods as far as the direction of traversal is concerned. You can find previous elements with `$.fn.prev()`, next elements with `$.fn.next()`, and both with `$.fn.siblings()`. There are also a few other methods that build onto these basic methods: `$.fn.nextAll()`, `$.fn.nextUntil()`, `$.fn.prevAll()` and `$.fn.prevUntil()`.
7070

7171
```
72-
// Selecing a next sibling of the selectors
72+
// Selecting a next sibling of the selectors
7373
7474
// returns [ div.surrogateParent1 ]
7575
$("div.parent").next();
7676
77-
// Selecing a prev sibling of the selectors
77+
// Selecting a prev sibling of the selectors
7878
7979
// returns [] as No sibling exists before div.parent
8080
$("div.parent").prev();
8181
82-
//Selecting all the next siblings of the selector
82+
// Selecting all the next siblings of the selector
8383
8484
// returns [ div.surrogateParent1, div.surrogateParent2 ]
8585
$("div.parent").nextAll();
@@ -88,7 +88,7 @@ $("div.parent").nextAll().first();
8888
// returns [ div.surrogateParent2 ]
8989
$("div.parent").nextAll().last();
9090
91-
//Selecting all the previous siblings of the selector
91+
// Selecting all the previous siblings of the selector
9292
9393
// returns [ div.surrogateParent1, div.parent ]
9494
$("div.surrogateParent2").prevAll();

0 commit comments

Comments
 (0)