Skip to content

Commit a76c1d2

Browse files
AurelioDeRosaKrinkle
authored andcommitted
Explicitly describe $ as an alias for jQuery
Fixes gh-680 Closes gh-681
1 parent 7e325a5 commit a76c1d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

page/about-jquery/how-jquery-works.md

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ $( document ).ready(function() {
5353
});
5454
```
5555
56+
<div class="warning">**Note**: The jQuery library exposes its methods and properties via two properties of the <code>window</code> object called <code>jQuery</code> and <code>$</code>. <code>$</code> is simply an alias for <code>jQuery</code> and it's often employed because it's shorter and faster to write.</div>
57+
5658
For example, inside the `ready` event, you can add a click handler to the link:
5759
5860
```

0 commit comments

Comments
 (0)