Skip to content

Instantly share code, notes, and snippets.

@JoeSimmonds
Created September 17, 2013 13:50
Show Gist options
  • Select an option

  • Save JoeSimmonds/6594577 to your computer and use it in GitHub Desktop.

Select an option

Save JoeSimmonds/6594577 to your computer and use it in GitHub Desktop.
make any element into a link by adding a href attribute
$(document).ready(function(){
$(":not(A)[href]").css("cursor","pointer")
.click(function(evt){window.location = $(this).attr("href");evt.stopPropagation();});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment