We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b565e5 commit e680de7Copy full SHA for e680de7
src/content/0/en/part0b.md
@@ -154,7 +154,7 @@ xhttp.onreadystatechange = function() {
154
li.appendChild(document.createTextNode(note.content))
155
})
156
157
- document.getElementsByClassName('notes')[0].appendChild(ul)
+ document.getElementById('notes').appendChild(ul)
158
}
159
160
@@ -324,7 +324,7 @@ data.forEach(function(note) {
324
Finally, the tree branch of the <em>ul</em> variable is connected to its proper place in the HTML tree of the whole page:
325
326
```js
327
-document.getElementsByClassName('notes').appendChild(ul)
+document.getElementById('notes').appendChild(ul)
328
```
329
330
### Manipulating the document object from console
0 commit comments