#Need help with DOM manipulation

4 messages · Page 1 of 1 (latest)

slate knot
#

Windows 11
js, html, css
making just for fun
no database
not really building a website just trying to learn some basic DOM manipulation

how do i loop through every class "new-set-card" in the "new-set-card-list" div and get the card-term and card-def value in order to add it to a js object?

quick crag
#

or you can use query selector

verbal trail
#

yeah using like jquery would allow you to query them all rather easily then you can loop thru and grab what you need