Created
August 2, 2019 10:26
-
-
Save sftsk/391dad997f86869dccc3b36ff380dc00 to your computer and use it in GitHub Desktop.
js snippets :)
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
# if click on table get text | |
document.querySelectorAll("#ccTableCollapse td").forEach(function(company) { | |
company.onclick = function(){alert(this.textContent);}; | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment