SyntaxFix
Write A Post
Hire A Developer
Questions
Since jQuery 1.9, the :target selector will match the URL hash. So you could do:
:target
$(":target").show(); // or $("ul:target").show();
Which would select the element with the ID matching the hash and show it.