Skip to content

Instantly share code, notes, and snippets.

@sdwh
Last active July 10, 2021 04:10
Show Gist options
  • Save sdwh/5ebabd7a450846721086e32ddb9b28c8 to your computer and use it in GitHub Desktop.
Save sdwh/5ebabd7a450846721086e32ddb9b28c8 to your computer and use it in GitHub Desktop.
[JS Dom Manipulate] #JS
$.each($("a"), function(_, ele){ console.log(decodeURI(ele.text.trim()), ":", ele.href.trim())})
document.querySelectorAll('h2 , h3').forEach(x => console.log(x.tagName, x.textContent))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment