Skip to content

Commit 4a63349

Browse files
committed
Add selecting-elementsin jq-basics
1 parent c92267b commit 4a63349

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

content/jquery-fundamentals/document-ready.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ title : "$(document).ready()"
55
---
66
## $(document).ready()
77

8-
You cannot safely manipulate a page until the document is “ready.” jQuery detects this state of readiness for you; code included inside `$(document).ready()` will only run once the page is ready for JavaScript code to execute.
8+
You cannot safely manipulate a page until the document is “ready.”
9+
jQuery detects this state of readiness for you; code included inside
10+
`$(document).ready()` will only run once the page is ready for JavaScript code to execute.
911

1012
<div class="example" markdown="1">
1113
A $(document).ready() block
@@ -15,7 +17,9 @@ A $(document).ready() block
1517
});
1618
</div>
1719

18-
There is a shorthand for `$(document).ready()` that you will sometimes see; however, I recommend against using it if you are writing code that people who aren't experienced with jQuery may see.
20+
There is a shorthand for `$(document).ready()` that you will sometimes see; however,
21+
I recommend against using it if you are writing code that people who aren't experienced
22+
with jQuery may see.
1923

2024
<div class="example" markdown="1">
2125
Shorthand for $(document).ready()

0 commit comments

Comments
 (0)