Skip to content

Instantly share code, notes, and snippets.

@dtulig
Created October 18, 2011 01:59
Show Gist options
  • Save dtulig/1294440 to your computer and use it in GitHub Desktop.
Save dtulig/1294440 to your computer and use it in GitHub Desktop.
>>> var ds = document.getElementById('gallery-image1').dataset;
>>> ds.authorName = 'David';
"David"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment