how do i select the content

newBook.children[0] contains
<div class="bookTitle">
<h3>Title:</h3>
<span>Think and grow rich</span>
</div>
<div class="bookTitle">
<h3>Title:</h3>
<span>Think and grow rich</span>
</div>
how do i alter the content inside the span tag?
2 Replies
cat
catOP7mo ago
newBook.children[0] and then?
Chris Bolson
Chris Bolson7mo ago
Try `newBook.children[0].querySelector("span")
Want results from more Discord servers?
Add your server