-
|
Given this code the Element doesn't have .text() property. |
Beta Was this translation helpful? Give feedback.
Answered by
fb55
Mar 2, 2025
Replies: 2 comments 2 replies
-
|
You'll have to wrap let items = $(".things p")
for (let p of items) {
console.log($(p).text())
}Oddity from the jQuery heritage, but hope this makes sense! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
erikschul
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You'll have to wrap
pwith$()inside the loop:Oddity from the jQuery heritage, but hope this makes sense!