Last active
May 17, 2024 04:18
-
-
Save craigmdennis/f243f20614faef50ba45222ae54e96d0 to your computer and use it in GitHub Desktop.
Create a comma separated string of the text from a series of nodes using devtools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let comma = ''; for (const cf of document.querySelectorAll('.class a')) { comma += `${cf.innerHTML},` }; console.log(comma); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment