Created
April 13, 2011 20:48
-
-
Save JamieS/918380 to your computer and use it in GitHub Desktop.
remove hashed hrefs from shopify link list, helpful for superfish drops
This file contains 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
If you want your anchor to still appear to be clickable: | |
$("a").removeAttr("href").css("cursor","pointer"); | |
And if you wanted to remove the href from only anchors with certain attributes (eg ones that just have a hash mark as the href - this can be useful in asp.net) | |
$("a[href='#']").removeAttr("href").css("cursor","pointer"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment