Skip to content

Instantly share code, notes, and snippets.

@gugod
Created December 4, 2008 09:14
Show Gist options
  • Save gugod/31892 to your computer and use it in GitHub Desktop.
Save gugod/31892 to your computer and use it in GitHub Desktop.
<html>
<head>
<style type="text/css">
#hello { display: none; }
</style>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(function() {
$("#hi").click(function() {
$("#hello").slideToggle();
})
});
</script>
</head>
<body>
<a href="#" id="hi">Hi</a>
<div id="hello">Hello</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment