Skip to content

Commit 2a1f174

Browse files
Josh HillJosh Hill
authored andcommitted
Match example to gist
1 parent d9e5842 commit 2a1f174

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/lesson3/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jQuery is a JavaScript library that supplies you with functionality independent
2424

2525
Selectors are simplified in jQuery. You can access elements by element type, id or class, just like in `CSS`.
2626

27-
For example, to retrieve all paragraph elements you can use this selector `$("p")` or to retrieve all elements with a specific id `$("#message")` instead of using `getElementByTag("p")` or `getElementById("message")`.
27+
For example, to retrieve all paragraph elements you can use this selector `$("div")`, or to retrieve all elements with a specific id `$("#container")` instead of vanilla JavaScript: `getElementByTag("div")`, or `getElementById("container")`.
2828

2929
```javascript
30-
$("p") // all paragraph elemenets
30+
$("div") // all div elemenets
3131
$("#container") // an element with the ID container
3232
$(".total") // elements with the class total
3333
$("ol#items") // ordered list elements with the ID items

0 commit comments

Comments
 (0)