Created
March 14, 2014 16:36
-
-
Save hardfire/9551408 to your computer and use it in GitHub Desktop.
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
/* HTML Element | |
<div class="group awesome" id="new">Test</div> | |
*/ | |
//js | |
var classes = document.getElementById('new').classList; | |
console.log(classes); | |
/* console output | |
0: group | |
1: awesome | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment