Skip to content

Instantly share code, notes, and snippets.

@bradvogel
Created January 12, 2015 01:28
Show Gist options
  • Save bradvogel/1795e0a05bf06aa516da to your computer and use it in GitHub Desktop.
Save bradvogel/1795e0a05bf06aa516da to your computer and use it in GitHub Desktop.
JQuery example
<!doctype html>
<html>
<head>
<script src="script.js"></script>
</head>
<body>
<button id="hello">Hello</button>
</body>
</html>
$(document).on('click', '#hello', function(){
alert('Hello!');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment