Skip to content

Instantly share code, notes, and snippets.

@giratikanon
Created August 18, 2012 13:57
Show Gist options
  • Select an option

  • Save giratikanon/3386966 to your computer and use it in GitHub Desktop.

Select an option

Save giratikanon/3386966 to your computer and use it in GitHub Desktop.
Example of jQuery
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
$(".tricky-button").click(function() {
$(".secret-image").fadeOut();
});
});
</script>
</head>
<body>
<img class="secret-image" src="http://placekitten.com/139/96" />
<input class="tricky-button" type="button" value="Hide image!"/>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment