Skip to content

Instantly share code, notes, and snippets.

@JamieS
Created April 13, 2011 20:48
Show Gist options
  • Save JamieS/918380 to your computer and use it in GitHub Desktop.
Save JamieS/918380 to your computer and use it in GitHub Desktop.
remove hashed hrefs from shopify link list, helpful for superfish drops
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