Last active
October 14, 2019 18:26
-
-
Save spig/364e96e1199f5362f68f2322e2c110e0 to your computer and use it in GitHub Desktop.
Get text of matching elements
This file contains 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
Array.from(document.getElementsByClassName("CLASSNAME")).map(e => e.textContent).join(','); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment