Created
April 8, 2015 12:35
-
-
Save ourmaninamsterdam/e1acaa4ad3744d5f50d2 to your computer and use it in GitHub Desktop.
Set CSS attribute value
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 setCSSAttributeSelectorValue(selector, value) { | |
return selector.slice(0, selector.lastIndexOf(']')) + '=' + value + ']'; | |
} |
Author
ourmaninamsterdam
commented
Apr 8, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment