[jQuery] Re: Grabbing hash mark

2008-02-10 Thread frizzle
Thanks a lot. I needed your first solution, my bad for not being clear enough. In the meanwhile i found location.hash.substring(1) elsewhere... Thanks again for your answers... Frizzle. On Feb 10, 4:39 pm, Ryura <[EMAIL PROTECTED]> wrote: > Oh, it occurred to me you might have wanted to f

[jQuery] Re: Grabbing hash mark

2008-02-10 Thread Ryura
Oh, it occurred to me you might have wanted to find this for a link on the page instead of the current url in the browser. If that's the case, you would do something like this: var b = $('a').attr("href").split("#")[1];

[jQuery] Re: Grabbing hash mark

2008-02-10 Thread Ryura
var a = window.location.href.split("#")[1]; On Feb 10, 9:50 am, frizzle <[EMAIL PROTECTED]> wrote: > Hi there, > > I was wondering how to grab the contents of everything behind the hash > mark ( # ) in a URL. > I could not find it on the Jquery site... > > Thanks, > Frizzle.