Skip to content

Instantly share code, notes, and snippets.

@gsans
Created November 28, 2014 10:28
Show Gist options
  • Save gsans/ceca203c1322b196aea9 to your computer and use it in GitHub Desktop.
Save gsans/ceca203c1322b196aea9 to your computer and use it in GitHub Desktop.
<!— this is set to the DOM element -->
<a href="#" class="myclass" another” id="1" onclick="alert(this.id + ‘ ‘ + this.className)">DOM element</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment