Created
January 29, 2017 10:25
-
-
Save cyrilletuzi/19be7ee8e06510245237c98eeb5889e7 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
/* jQuery */ | |
element.data('customName'); | |
element.data('customName', `Value`); | |
/* JavaScript */ | |
element.dataset.customName; | |
element.dataset.customName = `Value`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment