Skip to content

Instantly share code, notes, and snippets.

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