Skip to content

Instantly share code, notes, and snippets.

@sapandiwakar
Created February 14, 2012 13:58
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 sapandiwakar/1826953 to your computer and use it in GitHub Desktop.
Save sapandiwakar/1826953 to your computer and use it in GitHub Desktop.
jQuery click on image div
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$("divClass").live("click", function () {
<!--
your definition -->
});
</script>
</head>
<body>
<div id="divClass">
<img src="image1.png" alt="gallery" width="110" height="90" />
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment