Created
September 17, 2013 13:50
-
-
Save JoeSimmonds/6594577 to your computer and use it in GitHub Desktop.
make any element into a link by adding a href attribute
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(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