Skip to content

Instantly share code, notes, and snippets.

@csknk
Created October 10, 2013 12:06
Show Gist options
  • Select an option

  • Save csknk/6917289 to your computer and use it in GitHub Desktop.

Select an option

Save csknk/6917289 to your computer and use it in GitHub Desktop.
Make a div clickable - jQuery snippet that finds and links to an anchor within the div.
jQuery(document).ready(function($){
$(".post_thumb").click(function(){
window.location=$(this).find("a").attr("href");
return false;
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment