Skip to content

Instantly share code, notes, and snippets.

@pinscript
Created September 5, 2011 14:27
Show Gist options
  • Save pinscript/1195113 to your computer and use it in GitHub Desktop.
Save pinscript/1195113 to your computer and use it in GitHub Desktop.
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
alert('ok');
var str = $('#presentation div').data('options');
alert(str.trigger);
});
</script>
</head>
<body>
<div id="presentation">
<div data-options='{"trigger":"optimization-complete"}'>Test</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment