Created
January 13, 2015 18:37
-
-
Save brunobar79/9c356971883fefe5471a to your computer and use it in GitHub Desktop.
applyToClassElements
This file contains hidden or 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
| function applyToClassElements(className,property,value){ | |
| var elements = document.querySelectorAll(className); | |
| for(var i=0;i< elements.length; i++){ | |
| elements[i].property = value; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment