Skip to content

Commit ef6c2cb

Browse files
committed
Update how-jquery-works.md
1 parent 4fb0456 commit ef6c2cb

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

+9-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ This is a basic tutorial, designed to help you get started using jQuery. If you
2929
The `src` attribute in the `<script>` element must point to a copy of jQuery. Download a copy of jQuery from the [Downloading jQuery](http://jquery.com/download/) page and store the `jquery.js` file in the same directory as your HTML file.
3030

3131
<div class="warning">
32+
3233
**Note**: When you download jQuery, the file name may contain a version number, e.g., `jquery-x.y.z.js`. Make sure to either rename this file to `jquery.js` or update the `src` attribute of the `<script>` element to match the file name.
34+
3335
</div>
3436

3537
### Launching Code on Document Ready
@@ -56,7 +58,9 @@ $( document ).ready(function() {
5658
```
5759

5860
<div class="warning">
61+
5962
**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.
63+
6064
</div>
6165

6266
For example, inside the `ready` event, you can add a click handler to the link:
@@ -123,7 +127,11 @@ The following example illustrates the click handling code discussed above, embed
123127

124128
### Adding and Removing an HTML Class
125129

126-
<div class="warning">**Important:** You must place the remaining jQuery examples inside the `ready` event so that your code executes when the document is ready to be worked on.</div>
130+
<div class="warning">
131+
132+
**Important:** You must place the remaining jQuery examples inside the `ready` event so that your code executes when the document is ready to be worked on.
133+
134+
</div>
127135

128136
Another common task is adding or removing a class.
129137

0 commit comments

Comments
 (0)