Created
January 17, 2014 20:26
-
-
Save thetallweeks/8480779 to your computer and use it in GitHub Desktop.
After document.getElementsByClassName, loop through the list of 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
for (var i = 0, j = $elements.length; i < j; i++) { | |
element = elements[i]; | |
// Bind events, do whatever here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment