Skip to content

Instantly share code, notes, and snippets.

@TonyArra
Created December 20, 2016 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TonyArra/7fb30d397f03ba56a31b865a5f687dfa to your computer and use it in GitHub Desktop.
Save TonyArra/7fb30d397f03ba56a31b865a5f687dfa to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=7fb30d397f03ba56a31b865a5f687dfa
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<div id ="test" data-test="test"></div>
</body>
</html>
{"enabledLibraries":["jquery"]}
document.write($("#test").data("test"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment