Skip to content

Instantly share code, notes, and snippets.

@douglasmiranda
Created August 2, 2011 22:31
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 douglasmiranda/1121398 to your computer and use it in GitHub Desktop.
Save douglasmiranda/1121398 to your computer and use it in GitHub Desktop.
Make a tr clickable with the existing link in td
$('table a').each(function(){
$(this).parent().parent().click(function(){
location.href = $(this).find('a').attr('href');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment