Skip to content

Commit

Permalink
how-jquery-works: Fix markdown inside div
Browse files Browse the repository at this point in the history
Fixes #813.
  • Loading branch information
Krinkle committed Apr 9, 2024
1 parent 84c2a7a commit 4fb0456
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions page/about-jquery/how-jquery-works.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ This is a basic tutorial, designed to help you get started using jQuery. If you

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.

<div class="warning">**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.</div>
<div class="warning">
**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.
</div>

### Launching Code on Document Ready

Expand All @@ -53,7 +55,9 @@ $( document ).ready(function() {
});
```

<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>
<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>

For example, inside the `ready` event, you can add a click handler to the link:

Expand Down

0 comments on commit 4fb0456

Please sign in to comment.