checkpointking — 2010-07-17T16:15:54-04:00 — #1
Let's say I have a URL like this:
How do I fetch the ID with jQuery? What I want to do is to fetch it and then display content in a <div> that depends on the ID value. Do you know how to do that?
Thanks and best regards folks!
raffles — 2010-07-18T08:22:27-04:00 — #2
Convenient because window.location.hash will just return "#id" so you can use it directly as a jquery selector:
$(window.location.hash).html('content to go in DIV');