Javascript has access to the location.hash property:

http://www.java2s.com/Tutorial/JavaScript/0320__Location/Locationhash.htm

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of CraniumDesigns
Sent: Thursday, July 03, 2008 3:57 AM
To: jQuery (English)
Subject: [jQuery] How to pull a "#" URL value into a jquery variable?


Hey People,

I am building a FAQ that sits in an accordion structure. Everything is
closed when you first open the page, but we want the ability to link
directly to a specific question, so if someone inputs
"www.mydomain.com/faq#question35" into the address bar, jQuery can pull the
value of  "question35" into a variable and then I can reference it in the
code and open the corresponding question. I'm sure this is possible, but I'm
just a newb, so I need some help. Thanks!

-Steve


Reply via email to